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:
- Take ownership of the folder structure using the Takeown command.
takeown /F c:\winpe_x86\* /R
- 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
- Remove the folder.
rd /s /q c:\winpe_x86\
In this tutorial:
- Preparing Windows PE
- Exploring Windows PE
- Capabilities
- Limitations
- New Features of Windows PE 3.0
- Setting Up the Environment
- Installing the Windows AIK 2.0
- Configuring the Build Environment
- Removing the Build Environment
- Windows 7 Working with PE
- Creating Bootable Media
- Booting from a Hard Disk Drive
- Customizing Windows PE
- Automating Windows PE
- Automating with Unattend.xml
- Adding Images to Windows Deployment Services
- Using Windows PE with Microsoft Deployment Toolkit