Create a Shortcut to shut down the computer. Solved

  1.    #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 ComputerSystem Spec

  2. Brink's Avatar
    Posts : 38,868
    64-bit Windows 10 Pro build 18898
       #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 ComputersSystem Spec

  3. Anak's Avatar
    Posts : 667
    10 Home 64-bit | v1809 | Build - 17763.503
       #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:
    Click image for larger version. 

Name:	srtct.PNG 
Views:	44 
Size:	26.6 KB 
ID:	230149

    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.
    Click image for larger version. 

Name:	scss.PNG 
Views:	44 
Size:	94.6 KB 
ID:	230150

    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 ComputersSystem Spec

  4. Brink's Avatar
    Posts : 38,868
    64-bit Windows 10 Pro build 18898
       #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 ComputersSystem Spec

  5. Anak's Avatar
    Posts : 667
    10 Home 64-bit | v1809 | Build - 17763.503
       #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 ComputersSystem Spec

  6. Brink's Avatar
    Posts : 38,868
    64-bit Windows 10 Pro build 18898
       #6

    Anak said: View Post
    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 ComputersSystem Spec

  7. Anak's Avatar
    Posts : 667
    10 Home 64-bit | v1809 | Build - 17763.503
       #7

    Brink said: View Post
    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!

    Click image for larger version. 

Name:	Brink YDM.jpg 
Views:	32 
Size:	61.5 KB 
ID:	230168

    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 ComputersSystem Spec

  8. Brink's Avatar
    Posts : 38,868
    64-bit Windows 10 Pro build 18898
       #8

      My ComputersSystem Spec

  9.    #9

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

    Brink said: View Post
    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 ComputerSystem Spec

  10. Brink's Avatar
    Posts : 38,868
    64-bit Windows 10 Pro build 18898
       #10

    You're most welcome.
      My ComputersSystem Spec


 

Related Threads
How to Create a 'Slide to Shut down' Shortcut in Windows 10 The slide to shut down feature will let you shut down your PC by simply sliding a touch screen down, or dragging a screen down. Currently you can only use slide to shut down by running...
Solved Create Desktop Shortcut in Browsers and Email
O.k. I give up...can someone tell me how to create a desktop shortcut ? using Edge browser....also how do you move something from the favourites bar to the desktop?......it must be possible surely ?........Del.
Solved How to create a reboot shortcut? in Performance & Maintenance
I found that one can shorten the steps of shutting down windows by creating a shortcut on the desktop. by using this command "%windir%\System32\shutdown.exe /s /t 0" The shutdown exe file can be found in the directory above. I thought I may be...
want to create a shortcut for ' create restore point'. managed to find the ' use a restore point file' but this only allows restoration from a restore point not. relation of one. i know there a few ways to do this, but want to put a link on my...
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 18:41.
Find Us