Create Windows Shutdown, Restart, Logoff, Switch User, Hibernation Tiles using PowerShell Scripts

In this post we will see how to use PowerShell Scripts to create & add Shutdown, Restart, Logoff, Switch User, Hibernation Tiles to Windows 10 / 8 Start Screen. As you know Windows 8 has a Start Screen replacing the Start Menu. And this for many is still the concern as they are used to Windows 7 Start button providing this menu. Though I can say, that with bit of learning and using, you will start liking the Start Screen equally – if not more. But for some Windows 8 users, the main concern is that without the Start menu, it can be a chore to shut down or reboot Windows 8. And many of the Windows 8 users want to shutdown Windows 8 with just a click.

We have already seen 10 different ways you can shutdown or restart Windows 8. In this post, we will see how to create a Shutdown, Restart, Switch User, Hibernation and Logoff tile for Windows 8 using Powershell Script. You don’t have to worry about knowing coding for script. Microsoft TechNet has made available for download a ready-made script that will do the job for you. Just download the script , import and invoke the cmdlet.

Create Shutdown, Restart, Logoff, Switch User, Hibernate Tiles

Download from TechNet Script Center, to create creating Shutdown/Restart/Logoff Tiles. Unzip and extract the contents.

Now Let us see how to create these Tiles step by step:

First open the Windows PowerShell as Administrator. For this, in Windows 8 Start Screen, just type PowerShell, as soon as you start typing, it’ll list all the apps, so from there, select and  right-click on Windows PowerShell and Run as administrator to open the Windows PowerShell console.


Now here we have to run import module cmdlet to import the downloaded module.


Now to run the script in the Windows PowerShell Console, type the command: Import-Module <Script Path> at the prompt as shown below. For <Script path> replace it with whatever path you have stored the file CreateWindowsTile.psm1 after unzipping. (Here its shown to store in C:\script ).


If everything is fine, you’ll see no error message and will get the prompt. If by any chance if running script is disabled, you might see this error.


You can enable it by issuing the command Set-ExecutionPolicy –ExecutionPolicy RemoteSigned (For more details about Execution Policies, please check – about_Execution_Policies ) and apply the command as per your needs. Say Y to change the Execution Policy.PowerScript5 Now again run the cmdlet Import-Module <Script Path> at the prompt to import CreateWindowsTile.psm1 and you wont get any error.

Now type New-OSCWindowsTile command in the Windows PowerShell Console and this will create a shutdown, restart and logoff Windows 8 tile to the Start menu. And the message will be shown as below.


Now you can close Windows PowerShell Console and check the Start Screen for the shutdown, restart and logoff Windows 8 tiles.


That’s all, now for your convenience, you now have Restart, Logoff, Shutdown tiles with nice logo. Simply click on these tiles to initiate the action.

Do give it a try – it’s not as difficult as it looks.

For more details and those interested in more explanation, please check the TechNet Script Center, which also has a video explaining these steps. Visit these pages to create Switch User and Hibernation Tiles.

Also check out use PowerShell or VBScript to change Number of App Tile Rows on Windows Start Screen.

Download this VPN to secure all your Windows devices and browse anonymously
Posted by on , in Category Windows with Tags
The author has been a Microsoft MVP awardee in various Windows categories (2006-2016) and currently a Windows Insider MVP. A Technology Enthusiast, interested in anything technical and is committed to Microsoft technologies and products. He is actively associated with various Microsoft online communities, forums, Newsgroups and has been actively involved in Beta testing various Microsoft products and bug submissions.


  1. Unrealmi

    Hi. Nice tip. How about a Sleep tile also?

  2. mahesham22

    Does this work on windows RT (Want to do it on Surface RT) ?

Leave a Reply

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

9 + 3 =