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.
When we get a hard drive with a low-level format, the first step is to partition the hard drive befo
In the Active Directory domain of Windows 2000 and Windows 2003, we can only apply a password policy
Automatically close the program that stops responding For the program that stops responding, you ca
Before talking about server high availability, virtualization was mentioned because enterprises are
Easily build a mail server for Windows 2000
Win 2008 Precision Password Policy and Account Lockout Strategy
Windows Server 2008 takes virtualization to new heights
How to Form Your Microsoft Active Directory Strategy
Windows Server 2008 Development Guide Analysis
Active Directory Backup and Recovery (3)
Setting Up Local Policy for Win 2003 Application
Playing Chinese characters in Win 2003 English system
Win8.1 upgrade Win10 users: Start screen design does not go backwards
Windows system registry introduction and its use
The Battle of the Desktop in June: Win7 starts half the sky, XP does not warm down
Removing and adding Windows 7 system sidebar method
Easily manage files on your computer with the Win7 library feature
The difference between hard links and symbolic links
How to close Win10 automatic maintenance? How to turn off automatic maintenance
Hundreds of gimmicks Further - Security improvements in Windows 7