Skip to content

Instantly share code, notes, and snippets.

@chetan
Created January 10, 2014 22:43
Show Gist options
  • Save chetan/8364142 to your computer and use it in GitHub Desktop.
Save chetan/8364142 to your computer and use it in GitHub Desktop.
Move the page file to another drive (E), set it to 30GB-100GB, and reboot immediately
wmic computersystem set AutomaticManagedPageFile=FALSE
wmic.exe pagefileset create name="E:\pagefile.sys"
wmic.exe pagefileset where name="E:\\pagefile.sys" set InitialSize=30720,MaximumSize=102400
wmic.exe pagefileset where name="C:\\pagefile.sys" delete
shutdown -r -t 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment