While trying to switch on hibernation support on Windows Vista by typing
powercfg -h on
at command prompt, I have found this error message:
You do not have permission to enable or disable the Hibernate feature
I said to myself, “Don’t worry, maybe the user guide writer never had condition like this before”. Finally, I can solve the problem with some additional command like this
runas /profile /user:arif "powercfg -h on"
Related article, image source: http://mgratzer.topmind.at/2007/04/03/how-to-enable-hibernate-on-windows-vista/