Windows 7 / Getting Started

Removing the Build Environment

When DISM installs features, it can modify the access control lists (ACLs) of the Windows PE build files and folders, making it difficult to remove them in the future. You can work around this by using the Windows Server 2008 tool Takeown.exe to take ownership of the affected resources.

To remove the Windows PE build environment, perform the following steps:

  1. Take ownership of the folder structure using the Takeown command.

    takeown /F c:\winpe_x86\* /R

  2. Use the Change ACLs (cacls) command to give yourself permission to remove the folders (user is your user account).

    cacls c:\winpe_x86\* /T /G user:F

  3. Remove the folder.

    rd /s /q c:\winpe_x86\

[Previous] [Contents] [Next]