Using Sysprep

  
before creating an image in Win 2003

This article describes how to use the Microsoft Sysprep tool to automate the removal of page files (to reduce the time to copy images or reduce the overall size of the image) before creating a Windows Server 2003 image.

Note: Microsoft recommends that you do not use Sysprep on a domain controller.

Warning: "Registry Editor" can cause serious problems that may require reinstalling the operating system. Microsoft does not guarantee that it will solve the problem caused by improper use of the Registry Editor. Use “Registry Editor  at your own risk.

To use Sysprep to automate the removal of page files before creating a Windows Server 2003 image, use one of the following methods.

Method 1

Start “Registry Editor”(Regedit.exe).

Find the PagingFiles value in the following registry key:

HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SessionManager\\Memory Management

Double-click the PagingFiles value and type the following:

C:\\pagefile.sys00

Click OK.

Exit “Registry Editor”.

Then run SysPrep.

The registry settings in Method 1 force Windows to delete page files when you shut down Windows. You can then use the method you prefer to create a mounting partition image and deploy it to the target computer. During the first boot of the target system, the page file settings above it will be resized to match the memory modules of the new system after deployment.
Method 2

Use one of the following procedures to create a registry (.reg) file called Zeropage.reg:

Start “Registry Editor”(Regedit.exe).

Find the PagingFiles value in the following registry key:

HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SessionManager\\Memory Management

Double-click the PagingFiles value and type the following:

C:\\pagefile.sys00

Click OK.

On the File menu, click Export and export the item to a file called Zeropage.reg.

Exit “Registry Editor”.

Copy the following text into a .reg file called Zeropage.reg:

WindowsRegistryEditorVersion5.00 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SessionManager\\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

The following text and any Copy the other Sysprep command line parameters into a batch file called Sysprep.cmd:

regedit/sa:\\zeropage.reg a:\\sysprep-noreboot-pnp

on the target computer The new computer memory matches.

Copyright © Windows knowledge All Rights Reserved