reason

Well, I can't remember everything...

Monday, 17 December 2012

Remotely Configure Hibernation and Page File Using PsExec

Download and install (copy to c:\windows) PSExec from http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

Open a command prompt on your local computer, then enter
psexec \\<remote_computer_name> -u <username> -p <password> cmd
This should will give you cmd access to the remote computer

From there enter
powercfg /hibernate off
to disable Hibernation

then
wmic computersystem where name="%computername%" set AutomaticManagedPagefile=False
to disable the system managed page file

and
wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=4096,MaximumSize=4096
To set the pagefile to a fixed size of 4096 MB