Article ID: 892104 - View products that this article applies to.
This article describes how to automatically delete the paging file when you use the System Preparation tool (Sysprep.exe) to create an image of Microsoft Windows Server 2003, Windows XP, or Windows 2000. To delete the paging file, the size of the paging file must be set to zero. Deleting the paging file lets you reduce the total size of the image. The smaller image size may reduce the time that is required to copy the image.
Note We do not recommend that you use the Sysprep.exe tool on a domain controller.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756To automatically delete the paging file when you use the Sysprep.exe tool to create an image of Windows, use one of the following methods.
(https://support.microsoft.com/kb/322756/ )How to back up and restore the registry in Windows
Method 2After you run Sysprep, start in recovery console and delete the Pagefile.sys file before you capture the image. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:
255205Q255205 How to Delete the Pagefile.sys File in Recovery Console
Article ID: 892104 - Last Review: December 3, 2007 - Revision: 2.4