[HOW TO] add Shutdown/ Restart/ Lock/ Sleep to Windows 8?

To begin, click the Desktop icon on the Start screen to access the Desktop. Right-click on the Desktop, select New/ Shortcut

Shutdown:
a. Enter the following command in the Type the location of the item edit box and click Next.
shutdown.exe -s -t 00

Enter the name for the shortcut and click Finish. To change default icon, right-click on the shortcut and select Properties. The Shortcut tab on the Properties dialog box displays. Click Change Icon. Click OK on the dialog box to close it.

Copy the shortcut and paste into C:\ProgramData\Microsoft\Windows\Start Menu\Programs

Now you can access Shutdown icon to shutdown on Windows 8.

To add icon for Restart/ Lock/ Hibernate/ Sleep, enter the following commands create new shortcuts and enter the following commands on the first screen of the Shortcut wizard.

  • Restart Computer: shutdown.exe -r -t 00
  • Lock Workstation: rundll32.exe user32.dll,LockWorkStation
  • Hibernate Computer:  rundll32.exe powrProf.dll,SetSuspendState
  • Sleep Computer:  rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Notice:
1.
The ProgramData directory is a hidden. To gain access to it, click the Hidden items check box in the Show/Hide group on the View tab.

2.
Because the shutdown.exe program you specified has no icons associated whit it, the following message displays. Click OK.

By default, the icons in the shell32.dll file display. You can use the Browse button to select another .exe, .dll, .ico.

3.
The rundll32.exe file does have an icon available; however, you may want to change it. Use the Browse button to access a file with more icons. The shell32.dll file is located in C:\Windows\System32.
NOTE: For the Hibernate and Sleep options, make sure that the hardware in your computer support these options and that they are enabled.


Thank you for reading this article, please a comment if you are interested.
Tiến Phan - R0039
Knowledge is Endless
Sharing for Success

0 nhận xét:

Post a Comment