Knowledge Center

How to disable Windows Automatic Repair via a logon script for systems that have Drive Encryption installed
Technical Articles ID:   KB76649
Last Modified:  8/6/2019


McAfee Drive Encryption (DE) 7.1 and later
McAfee Endpoint Encryption for PC (EEPC) 7.0.x
Microsoft Windows 8 and later

For details of DE supported environments, see KB79422.


This article covers how Windows recovery tools can impact the operating system when DE is installed.


The Windows 8 and later operating systems contain a feature called Automatic Repair. When this feature is run on a system where the hard-disk is encrypted, it inadvertently destroys the encrypted operating system files. The Windows feature can cause permanent boot problems.

NOTE: In previous releases of Windows, the user was asked whether they wanted to repair the system before starting the repair. But, on Windows 8 and later it boots into Automatic Repair immediately when a problem is detected. It does not allow the user to cancel the action, which leaves little scope to prevent destruction of encrypted data.


Administrators can use the following steps to disable this Windows 8 feature via a logon script:

  1. From this article, detach disableautorecovery.zip.
  2. Extract from the above file disableautorecovery.ps1.
  3. Open Administrative Tools and select Group Policy Management.
  4. Select the Default Domain Policy (or a suitably customized policy you are using for your domain computers).
  5. Right-click and select Edit.
  6. Click Computer Configuration, Policies, Windows Settings, Scripts (Startup/Shutdown).
  7. Double-click Start-up and select PowerShell Scripts.
  8. Click Add and browse to the location where you saved disableautorecovery.ps1. The policy is propagated to your computers within 90–120 minutes, according to the Windows default setting.


221Bytes • < 1 minute @ broadband

Rate this document

Affected Products

Beta Translate with

Select a desired language below to translate this page.

Glossary of Technical Terms

 Highlight Glossary Terms

Please take a moment to browse our Glossary of Technical Terms.