Pete Hinchley: Move the PageFile to Another Drive using PowerShell

To use PowerShell to move the pagefile from c:\pagefile.sys to another drive, such as d:\pagefile.sys, use the following PowerShell command:

Set-WMIInstance -Class Win32_PageFileSetting -Arguments @{ Name = "D:\pagefile.sys"; InitialSize = 0; MaximumSize = 0; }