Shortcut to hibernate windows wthout the UAC window

Page 1 of 2 12 LastLast

  1. Posts : 1,523
    windows 10 PRO
       #1

    Shortcut to hibernate windows wthout the UAC window


    is it possible to create a Hibernate shortcut but avoiding the UAC window ?

    presently using
    C:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0
      My Computer


  2. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2
      My Computer


  3. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #3

    Yep found that, couldn’t work out how to add the hibernate line
      My Computer


  4. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    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
      My Computer


  5. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    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
      My Computer


  6. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #6

    Thanks all sorted shortcut made
    Last edited by reddwarf4ever; 09 Nov 2020 at 15:21.
      My Computer


  7. Posts : 6,343
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #7

    You can use shutdown /h to hibernate.
    Type shutdown /? for options.
      My Computers


  8. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #8

    Megahertz said:
    You can use shutdown /h to hibernate.
    Type shutdown /? for options.
    Thanks but I have the hibernate option, I want a shortcut to hibernate without the UAC window

    thanks
      My Computer


  9. Posts : 6,343
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #9

    You apply the shutdown /h to the Create Elevated App Shortcut without UAC Prompt Brink tutorial
      My Computers


  10. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    What he's saying is that you can use that shorter command in the Task you have just made.

    So
    Code:
    shutdown /h
    in place of
    Code:
    C:\Windows\System32\rundll32.exe powrprof.dll, SetSuspendState 0,1,0
    I'm no great fan of using SetSuspendState either but if it works it works.

    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:34.
Find Us




Windows 10 Forums