New
#1
Shortcut to hibernate windows wthout the UAC window
is it possible to create a Hibernate shortcut but avoiding the UAC window ?
presently usingC:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0
is it possible to create a Hibernate shortcut but avoiding the UAC window ?
presently usingC:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0
You write your Shutdown command [C:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0] in the Action line [in place of their example command, cmd.exe] - Option 2, Step 7.
Denis
Here's a Task definition that you can import straight into Task scheduler but please do then look through that tutorial again so you can see that it uses that as its guidance and so that you can create the shortcut to it [Option 2, Step 13+].
1 Extract the contents of the HibernateTask.zip file and you'll see that it is HibernateTask.xml [it is a TS task definition]. You can read it in Notepad.
2 The task will be shown in Task scheduler with the name HibernateTask so if you are going to want a different name just rename the .xml file now.
3 Open Task scheduler, on the right-hand side click on Import task
4 Right-click on the task & select Run to test it.
5 Right-click on the task & select Export to make a backup [it will have been slightly altered by the Import - your UserName will have been added to the task definition].
Denis
You can use shutdown /h to hibernate.
Type shutdown /? for options.
You apply the shutdown /h to the Create Elevated App Shortcut without UAC Prompt Brink tutorial
What he's saying is that you can use that shorter command in the Task you have just made.
So
in place ofCode:shutdown /h
I'm no great fan of using SetSuspendState either but if it works it works.Code:C:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0
Denis