In this post, we will see how to use PowerShell Scripts to create & add Shutdown, Restart, Logoff, Switch User, Hibernation Tiles to Windows 8.1/8 Start Menu/Screen. As you know Windows 8 has a Start Screen replaces the Start Menu. And this for many is still the concern as they are used to the Windows 7 Start button providing this menu. Though I can say, that with a 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 shut down 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 to code for the 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 CreateWindowsTile.zip 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.
If everything is fine, you’ll see no error message and will get the prompt. If by any chance if the 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.
Now again run the cmdlet Import-Module <Script Path> at the prompt to import CreateWindowsTile.psm1 and you won’t 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.
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 a 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 using PowerShell or VBScript to change the Number of App Tile Rows on the Windows Start Screen.