At the time of remote control, the command line is required to set Windows Pagefile.sys, and the command line is more needed when the core installation of Windows Server 2008 is installed. How do you want to operate it exactly?
The tool to be used to set up "Pagefile.sys" on the command line is "WMIC", which is brought in by Windows 2000 and later versions.
If you want to disable automatic paging files, you can enter:
WMIC ComputerSystem where name= "%computername%" set Automaticmanagedpagefile=false
You can then use the "pagefileset" command to set the paging file, such as creating a paging file to replace the "C:pagefile.sys", or delete the paging file and so on.
If you want to build a fixed size of 2048M pagefile, enter the following command:
WMIC Pagefileset where name= "C:pagefile.sys" set initialsize=2048,maximumsize=2048
You can also run the following command to view the settings for "pagefile":
WMIC Pagefileset
Or the following command is the same effect:
WMIC Pagefileset List/format:list
Remember to reset the system before it takes effect.