Create a Shortcut to shut down the computer.

Page 1 of 2 12 LastLast

  1. Posts : 548
    Windows 10 Build 1809
       #1

    Create a Shortcut to shut down the computer.


    Win 10 version 1809

    I would like to create a shortcut to shutdown the computer and have created one following the instructions in

    How to Create A Shutdown Shortcut on Windows 10 Desktop but I can't make it work. Nothing happens when I double click the shortcut's icon.

    Will someone please give me a hand in doing this?

    Thank you.
      My Computer

  2. Brink's Avatar
    Posts : 60,471
    64-bit Windows 11 Pro for Workstations
       #2

    Hello JJ,

    You might see how creating a shortcut using the command below may work for you from Option 8 in the tutorial below.

    Shut Down Computer in Windows 10 | Tutorials

    shutdown /s /f /t 0
      My Computers

  3. Anak's Avatar
    Posts : 1,323
    10 Home 64-bit | v21H1 | Build - 19043.1110
       #3

    Hi,

    JJ, do you still have the shortcut you created? If you do can you right click on it and go to the bottom of the context menu and left or right click on Properties.

    It should open to this, the shortcut tab:
    Create a Shortcut to shut down the computer.-srtct.png

    Right click on the blue highlighted target line and copy. Paste that target line into your next post, we need to see how the command is set.

    I have both a shutdown and restart shortcut on my desktop.
    Create a Shortcut to shut down the computer.-scss.png

    And these are the CMDs I use for them:
    Code:
    C:\Windows\System32\shutdown.exe -s -t 00
    C:\Windows\System32\shutdown.exe -r -t 00
    The s switch is for shutdown and the r switch is for restart.
    The t switch sets the time to wait before actually starting the cmd and in my case 00 stands for immediately as soon as I click on the shortcut.


    @Brink , Hi,
    • I notice the CMDs don't need an elevated prompt anymore in 10 ?
    • And forward slashes are used instead of dashes ?

    Is this new for 10? I've been using my targets since w98 and they work, although now in 10 I have to click yes for the UAC.
      My Computers

  4. Brink's Avatar
    Posts : 60,471
    64-bit Windows 11 Pro for Workstations
       #4

    Hello @Anak Steve,

    You don't need to use "Run as administrator" (elevated rights) to shut down the computer.

    You can use either forward slashes or dashes for switches.

    It's been this way in all Windows I believe.
      My Computers

  5. Anak's Avatar
    Posts : 1,323
    10 Home 64-bit | v21H1 | Build - 19043.1110
       #5

    Okay, but what about the UAC thing? I've never had to use that before. Would you think it may be that Controlled Folder Access block for apps that's doing that?
      My Computers

  6. Brink's Avatar
    Posts : 60,471
    64-bit Windows 11 Pro for Workstations
       #6

    Anak said:
    Okay, but what about the UAC thing? I've never had to use that before. Would you think it may be that Controlled Folder Access block for apps that's doing that?
    I wouldn't think so.

    Did you make the shortcuts using "Run as administrator", or make any changes to UAC settings or policies?
      My Computers

  7. Anak's Avatar
    Posts : 1,323
    10 Home 64-bit | v21H1 | Build - 19043.1110
       #7

    Brink said:
    I wouldn't think so.

    Did you make the shortcuts using "Run as administrator", or make any changes to UAC settings or policies?
    No changes to UAC settings or policies or creation as run as admin, just an elevated prompt, but, when I checked under the Advanced button there at the lower right on the Shortcut tab, I saw that 'Run as Administrator' was checked but I don't remember checking it.

    Ergo; Uncheck it and test, right? Hang on a sec and I'll test, I'm on my 7box.

    Shuffles over to the 10box, unchecks run as admin, applies and OK's my way out, tests shortcut.
    There is a momentary flash of a CMD window. No UAC prompt, 10box immediately shuts down like in days of yore!

    Create a Shortcut to shut down the computer.-brink-ydm.jpg

    Thanks much Shawn, that's been an irritant since I put those shortcuts on the desktop.


    Now, If only JJ would respond so we can help him out....
      My Computers

  8. Brink's Avatar
    Posts : 60,471
    64-bit Windows 11 Pro for Workstations
       #8

      My Computers


  9. Posts : 548
    Windows 10 Build 1809
    Thread Starter
       #9

    Thank you very much, Brink. That opens up some new ideas.

    Brink said:
    Hello JJ,

    You might see how creating a shortcut using the command below may work for you from Option 8 in the tutorial below.

    Shut Down Computer in Windows 10 | Tutorials

    shutdown /s /f /t 0
      My Computer

  10. Brink's Avatar
    Posts : 60,471
    64-bit Windows 11 Pro for Workstations
       #10

    You're most welcome.
      My Computers


 

  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 04:26.
Find Us




Windows 10 Forums