JSI Tip 9037. How can I make Sysprep.exe create a smaller image of Windows Server 2003, Windows XP, or Windows 2000?

Jerold Schulman

February 8, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today

The easiest way to reduce the size of the image is to delete the paging file on the source computer, making it quicker to to copy the image:

1. Copy / Paste the following into Notepad.exe:

Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management]"PagingFiles"=hex(7):43,00,3a,00,5c,00,70,00,61,00,67,00,65,00,66,00,69,00,6c,  00,65,00,2e,00,73,00,79,00,73,00,20,00,30,00,20,00,30,00,00,00,00,00

2. Save the file as PagingFilesZero.txt to the floppy that contains Sysprep.exe.

3. Rename the PagingFilesZero.txt file to PagingFilesZero.reg.

4. Create the following Sysprep.cmd file on the floppy"

regedit /s A:PagingFilesZero.reg
A:sysprep -noreboot -pnp

5. Run the Sysprep.cmd file to set the page file to zero and start Sysprep.exe.

NOTE: The page file is deleted when the computer is shutdown.

NOTE: When the destination computer is restarted after deployment, the page file will be sized to the default based upon the destination computer memory.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like