Add Shortcuts in Windows for Shutdown and Restart

I have been using Windows 8 as my primary OS since the past week and am overall quite happy with the various UI improvements. The Metro Tiles interface is primarily designed for the touch screen but it’s equally easy to navigate with a mouse and keyboard.

They got rid of the Start Menu in Windows 8 and as a side-result, there’s no dedicated menu option available to quickly shut-down or restart your Windows 8 computer.

shutdown windows 8

How to Shutdown, Restart or Log Off in Windows 8

The regular approach I this. As there are no “shutdown” buttons in Windows 8, you can switch to the desktop view and press Alt+F4 to bring the Shut Down menu or the other option is that you press the shortcut key Win+C, go to Settings – > Power – > Shut down.

That’s too many steps especially when you are in a dual-boot environment and need to switch from one OS to another.

Wouldn’t it more convenient if you could create simple tiles – like any other metro app – and place them on the Windows 8 desktop so that you can Shut down, Log off or Restart your Windows 8 computer with a simple click (or tap).

Enter createButtons.vbs – this is a simple utility (or rather a script) that will automatically add Shut Down and other related buttons to your Windows 8 screen. There’s no installation required – just download the file to your desktop and double-click to create the various buttons.

Here’s a video demo of the script in action:

Also, here’s the full source code of the VB script in case you are curious to know what it does behind the scenes. It may not be the most efficient piece of code but it will do the trick.

'
' This script will create shortcuts in the Start Menu
' Written by Amit Agarwal - 06/03/2012
' Web: http://labnol.org/?p=20989
' Version: 0.1
'
set WshShell = WScript.CreateObject("WScript.Shell")
strStartMenu = WshShell.SpecialFolders("StartMenu")
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\\Shutdown.lnk")
oShellLink.TargetPath = "%systemroot%\\System32\\shutdown.exe"
oShellLink.Arguments = "-s -t 0"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\\System32\\shell32.dll,27"
oShellLink.Description = "Shutdown Computer (Power Off)"
oShellLink.WorkingDirectory = "%systemroot%\\System32\\"
oShellLink.Save
Set oShellLink = Nothing
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\\Log Off.lnk")
oShellLink.TargetPath = "%systemroot%\\System32\\shutdown.exe"
oShellLink.Arguments = "-l"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\\System32\\shell32.dll,44"
oShellLink.Description = "Log Off (Switch User)"
oShellLink.WorkingDirectory = "%systemroot%\\System32\\"
oShellLink.Save
Set oShellLink = Nothing
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\\Restart.lnk")
oShellLink.TargetPath = "%systemroot%\\System32\\shutdown.exe"
oShellLink.Arguments = "-r -t 0"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\\System32\\shell32.dll,176"
oShellLink.Description = "Restart Computer (Reboot)"
oShellLink.WorkingDirectory = "%systemroot%\\System32\\"
oShellLink.Save
Set oShellLink = Nothing
Wscript.Echo "Created Shutdown, Restart and Log Off buttons"
Amit Agarwal

Amit Agarwal

Google Developer Expert, Google Cloud Champion

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.

Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

0

Awards & Titles

Digital Inspiration has won several awards since it's launch in 2004.

Google Developer Expert

Google Developer Expert

Google awarded us the Google Developer Expert award recogizing our work in Google Workspace.

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards in 2017.

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional (MVP) title for 5 years in a row.

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator title recognizing our technical skill and expertise.

Email Newsletter

Sign up for our email newsletter to stay up to date.

We will never send any spam emails. Promise.