Windows 7 / 8 Shutdown, Restart, Lock & Sleep Shortcuts



Right click a blank area on your desktop. Scroll down to New and scroll over to Shortcut.
Next place the command you want create in the Create Shortcut box.
Click Next and title the shortcut click Finish.
Done.

Shutdown:
Shutdown.exe -s -t 00

Restart:
Shutdown.exe -r -t 00

Lock:
Rundll32.exe User32.dll,LockWorkStation

Sleep:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Standby (Flashing power button):
Open a command prompt (admin) window
Type or copy and paste powercfg -hibernate off and press enter. Close the command prompt window.
rundll32.exe powrprof.dll,SetSuspendState Standby

Nguồn: https://hqclix.net/

Xem thêm bài viết khác: https://hqclix.net/cong-nghe/

All Comments

  • Thanks bro

    Uchiha ITACHI July 1, 2020 9:54 am Reply
  • Thank you very much

    play like pro gamers Ak bhai July 1, 2020 9:54 am Reply
  • Thank you very mucg

    play like pro gamers Ak bhai July 1, 2020 9:54 am Reply
  • you helped a lot

    linda kejsi July 1, 2020 9:54 am Reply
  • Thanks man – Also thanks for putting the commands in the video description. helped out alot

    MEGA NZ July 1, 2020 9:54 am Reply
  • very nice men
    go on doing such type of short cuts

    shailesh ajabe July 1, 2020 9:54 am Reply
  • thanks alot

    Altun Zadeli July 1, 2020 9:54 am Reply
  • how do u assign a key on keyboard to shut down comp in win 7??

    Zander July 1, 2020 9:54 am Reply
  • Can i have sleep and hibernate buttons?

    zUltra July 1, 2020 9:54 am Reply
  • Pls tell me how to set a icon for lock screen

    chandra sekhar reddy bosa July 1, 2020 9:54 am Reply
  • It doesnt work when I turn off hibernate

    ღ*mαndαrinkα gül*ღ July 1, 2020 9:54 am Reply
  • l tryed on windows 10 and working

    yunusgamer2005 COMPUTER July 1, 2020 9:54 am Reply
  • Thank's

    Jorgen Sandstrom July 1, 2020 9:54 am Reply
  • is this safe?i mean in the safe way. i dont want to broke my computer again (yes,i have broke my windows 7 many times)

    SUPER BORED July 1, 2020 9:54 am Reply
  • [ rundll32.exe powrprof.dll,SetSuspendState 0,1,0 ] doesn't make the windows sleep the way I expect. As I expect, when my laptop sleeps, my laptop's power light slowly fade and light up – This command completely turn off the power light, when I wake my laptop up, it should go directly to the lock screen, skip the Manufacturer's Logo and "Resuming Windows with MS's Logo fly" – this command don't skip.
    Is there anyway to get exactly the command the Windows' sleep button have?

    HDN Share July 1, 2020 9:54 am Reply
  • OUTSTANDING! Just what I needed as my new computer didn't come with a sleep button on the Keyboard. BTW. I used the ShortCut Key option in the ShortCut Properties to assign a key on the keyboard. I used one of the function keys and it works like a champ.

    PDK Life and Times July 1, 2020 9:54 am Reply
  • sleep don't work. when i use the command "rundll32.exe powrprof.dll,SetSuspendState 0,1,0" my pc go in hybride mode

    Mr Turbo July 1, 2020 9:54 am Reply
  • liked it. I'm nervous ….doing my first office shutdown today and this concise operation could come in handy

    cplassman2009 July 1, 2020 9:54 am Reply
  • Thank you very much for taking this effort! I just created my sleeping icon and opened a cmd.exe command prompt as being an administrator. The full command you can use is:

    powercfg /hibernate off

    or

    powercfg /hibernate on

    Edo July 1, 2020 9:54 am Reply
  • How do you know/ where to find what to put in shortcuts? Cause for sleep that's a pretty long title, so where do you find it?

    300% Werks July 1, 2020 9:54 am Reply
  • Any way to get an icon for the sleep function?

    TheBoundlessJourney July 1, 2020 9:54 am Reply
  • Thanks so much!!

    David Legge July 1, 2020 9:54 am Reply
  • 「Shutdown.exe -s -t 00」 for SHUTDOWN 「Shutdown.exe -r -t 00」 for RESTART 「Rundll32.exe User32.dll,LockWorkStation」 for LOCK 「rundll32.exe powrprof.dll,SetSuspendState 0,1,0 for SLEEP

    KS Lee July 1, 2020 9:54 am Reply
  • thnx you verrry muchhh

    Janko Pap July 1, 2020 9:54 am Reply
  • How does this work? There is always an Error when I try to run these commands.

    Carlos Pineda July 1, 2020 9:54 am Reply
  • You're welcome.

    GodlessManitoban July 1, 2020 9:54 am Reply
  • thank you really helped

    Tej Safri July 1, 2020 9:54 am Reply
  • You're welcome.

    GodlessManitoban July 1, 2020 9:54 am Reply
  • thanks, very well explained.

    lowie teunis July 1, 2020 9:54 am Reply
  • Good tip.

    GodlessManitoban July 1, 2020 9:54 am Reply
  • you forgot to mention that hibernation MUST be turned off for sleep to work otherwise it just hibernates instead of sleep. windows q search for cmd, run as admin. type powrcfg -h off in run window. Then it will work. do the same with on to turn hibernation back on.

    99butcher99 July 1, 2020 9:54 am Reply
  • You're welcome.

    GodlessManitoban July 1, 2020 9:54 am Reply

Leave a Reply

Your email address will not be published. Required fields are marked *