Create Shutdown, Restart, Hibernate and Sleep Shortcuts in.
I am trying to write a script that will not only create a shortcut on the user's desktop, but when the user clicks on the icon, I want them to be asked if they really want to shut down the computer and given the option to cancel the shutdown or proceed with the shutdown. So far I have searched to the end of my textbook and google.
This tutorial shows how to create a shutdown button or shortcut on the Windows desktop and as a tile in the start menu in Windows 8 ,Windows 8.1 and Windows 10. The shutdown shortcut can be created on the desktop in any version of windows operating system including Windows XP, Windows 7, Windows Vista, Windows 8 ,Windows 8.1 and Windows 10.But the shutdown tile can be used only in the versions.
In the resulting box, you’ll need to enter different text depending on whether you want a sleep shortcut key or one to shut down the computer. Use the following: To shut down Windows immediately and force-close any open programs: To create a sleep shortcut: rundll32.exe powrprof.dll,SetSuspendState 0,1,0.
How To: Speed up the shut down time on Windows XP and Vista; How To: Shutdown and reboot with a right-click on Windows; How To: Make a desktop icon to shutdown your computer in XP; How To: Enable or disable hibernation on a PC with Windows XP; How To: Add a command prompt shortcut to the Windows Explorer right-click menu.