Wednesday, August 4, 2010

Page file creation using WMIC in Win 2k8 Core Servers

WMIC commands to create Pagefile from command prompt in Win 2k8 Core Servers

To create a page file, run the following command:


wmic.exe pagefileset create name="X:\pagefile.sys"


Note: In this command, X is the letter of the drive on which you want to create the page file.

To set the size of the page file, run the following command:


wmic.exe pagefileset where name="X:\\pagefile.sys" set InitialSize=300000,MaximumSize=3000000


Note: In this command, the page file size is set to 300,000 megabytes.

If you do not need the page file on drive C, run the following command to delete it:


wmic.exe pagefileset where name="C:\\pagefile.sys" delete

No comments: