How to use the Microsoft Sysprep tool to automate the removal of page files before creating a Windows Server 2003 image (to reduce the time to copy images or reduce the overall size of the 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
Copy the following text and any other Sysprep command line arguments into a batch file called Sysprep.cmd:
regedit/sa:\\zeropage. Reg
a:\\sysprep-noreboot-pnp
The new computer memory on the target computer matches.
The registry is like a database of the system. It is like the treasure pocket of a
With the strengthening of the application, the function of the campus network has g
The network managed in the morning is rapidly expanding and the number of computers is increasing. I
VPN, that is, virtual private network, use public network to connect multiple private networks or ne
Quickly shut down Win2003 has a high trick
How to retrieve telnet server under vista
Introducing the functions of Win XP/2003 system service backup and protection
Tools and Configurations for Enhancing Win 2003 System Security
Identifying foreign devices, win2003 has a trick
Maintain Win2003 system security? Then use the distribution function
The operating system is invaded, and several methods are easy to repair.
Specific steps to use automatic system failure recovery
Windows2003 server c disk space is insufficient Solution Raiders
Experience Windows 2003 SP1 new highlights feature - Security Configuration Wizard
Microsoft has been planning Windows 8/Office 15 for more than a year
How to delete and recover WinXP files and folders
Software installation and uninstallation under Linux
Win 7 hidden small secret: quickly open the command prompt
Win8 prompts the file does not have a program associated with it to perform this operation?
Lenovo notebook win7 system IE browser failed to open normally how to solve
How Win8 adds music to music apps
What should I do if the U disk system encounters the Internal Error 36000 error message?