set and change page file settings with wimic

  • How can I configure server/workstation page file settings and recovery settings (pagefile.sys – default is c:\pagefile.sys)?
    • Command >> wmic pagefileset where name="localpath/pagefilename" set InitialSize=initialsize, MaximumSize=maxsize
    • Note: make sure you have enough drive space if you set the page file to something other than C:\. Here is a good time to use your Solid State Drive.