Mouse Cursor

Welcome To Mani Mishra Tips and Tricks


Visiters

Template Information

Mani Mishra Tips and Tricks

Background Song


IP Address Finder 3
  ------------------------------------------------- ****** ------------------------------------------------- 

Friday, March 08, 2013

How to Create Shutdown, Logoff and Reboot Buttons on Start Screen in Win 8

Create Shutdown, Log-off and Reboot Buttons on Start Screen in Win 8

To view Enlarge click on image

Follow the steps to Add Shutdown and Restart Buttons :

1). First off launch the Notepad. This can done by pressing Win Key + R and then type notepad and hit enter.
2). Then copy and paste the below code to notepad.
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"

3). Now click on the Save As option in the file menu and Enter the file name with the .vbs extension.
      for example : create.vbs

4). Then run this file.

If you Like This Article,Then kindly linkback to this article by copying one of the codes below.

URL Of Post:



Paste This HTML Code On Your Page:

7 Comments: