How to run chkdsk in unattended mode (without user input) during automated deployment of SafeGuard client components

  • ID de l'article 113908
  • Mis à jour : 30 nov. 2011

When deploying SGN client components using batch scripts you may need to add chkdsk command to your script. Default command listed in our installation guide - chkdsk %systemdrive% /f /v /x"will prompt for user input: "Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N), which needs to be bypassed in scripted installation.

Known to apply to the following Sophos product(s) and version(s)
SafeGuard Device Encryption all supported

Operating system
All supported

What to do

Method 1

use the following command from command prompt (Start > Run > cmd):

REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" /v BootExecute /t REG_MULTI_SZ /d "autocheck autochk /p \??\C:"\0"autocheck autochk *" /f

Method 2

use the following command: 

echo Y | chkdsk C: /f /v /x


Si vous avez besoin de plus d'informations ou d'instructions, veuillez contacter le support technique.

Évaluez cet article

Très mauvais Excellent