W2K8 R2 Core Services – Move The Pagefile To A Different Disk

Moving The Pagefile To A Different Disk

This article explains how to move the Pagefile on a Windows 2008 R2 Core Services Server to a different disk.

Disable Automatic Managed Pagefile

The first step in moving the Pagefile to a different disk is to disable the automatic managed pagefile by performing the following steps :-

  • At the command prompt execute the following :-

wmic¬†computersystem where name=”{Your Server Name}” set AutomaticManagedPagefile=False

  • Insert the name of you Server in between the quotes – E.G. “Server01” where Server01 is your Server Name

Creating The New Pagefile

The next step is to create the pagefile which will be used by performing the following steps :-

  • At the command prompt execute the following :-

wmic pagefileset create name=”D:\pagefile.sys”¬†

wmic pagefileset where name=”D:\\pagefile.sys” set InitialSize=2560,MaximumSize=2560

  • The commands above will first create the new pagefile.sys file on the D: drive and then configure it for a Minimum and Maximum Size of 2.5GB.

Deleting The Original Pagefile

The final steps in moving the Pagefile to a different disk is to delete the original Pagefile and rebooting the server by performing the following steps :-

  • At the command prompt execute the following :-

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

shutdown -r -f -t 0