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

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_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory 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.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.