Create a Shutdown/Restart/Logoff Windows 8 Tile for the Start menu (PowerShell)

This PowerShell Script illustrates how to create a Shutdown ,Restart or Logoff Windows 8 tile to the Start menu.

 
 
 
 
 
4.5 Star
(134)
54,242 times
Add to favorites
11/18/2014
E-mail Twitter del.icio.us Digg Facebook
  • Windows 10
    2 Posts | Last post August 22, 2015
    • Anyone tested this in Windows 10 Preview?
    • Offering Helpful Relocation Services Packers and Movers -Please visit for More information about 
      movers and packers in Noida@ http://professionalmovers.in/packers-and-movers-in-nodia/
      movers and packers in Gurgaon@ http://professionalmovers.in/packers-and-movers-in-gurgaon/
       movers and packers in delhi@ http://professionalmovers.in/packers-and-movers-in-delhi/ 
      movers and packers@ http://professionalmovers.in
      movers and packers in Bangalore@ http://professionalmovers.in/packers-and-movers-in-bangalore/
      
  • Custom Icon on tile?
    3 Posts | Last post August 19, 2015
    • Is there a way to create a custom tile icon so that it matches the rest of the Windows 8 UI?
    • in my idea, there is no trick of customization of icon in windows 8 up-to present time.
    • Hello,
      
      On touch devices, can you help me with the code snippet for Lock tile?
      
      Thank you so much for your time..
      
      Regards,
      Venu
  • run on windows server 2012
    2 Posts | Last post May 26, 2015
    • can i use this script on windows server 2012?
    • of course! I just tested and working properly. You just have to anchor them.
  • How do I run this on other users machine?
    2 Posts | Last post December 02, 2014
    • How can I use this script to create the tiles on one of my company users machine?
      The user does not have PowerShell installed locally, so how would I run this and make it work on his machine? I have Powershell installed on my administrator machine.
    • install it remotly !!!
  • This is very helpfull.
    2 Posts | Last post October 28, 2014
  • Will it work on WIndows 8.1 Preview ?
    5 Posts | Last post August 23, 2014
    • Hi, Just want to ask that will this work on Windows 8.1 Preview !
    • Hi Luigi,
      
      This script sample can also work on Windows 8.1 Preview.
    • Hi,
      
      on my win 8.1 test it doesn't work fine. The tiles are created but not pinned to the start Metro UI.
      Can anybody help?
    • Hello,
      I have the same result - no 'pin to start'.
      After the script create the link-file, 
      the script search all the options of this file for 'Pin to Start'.
      But there is no one.
      
      The options are 
      - Open
      - .. Path
      - run as admin..
      - Edit with &Notepad++
      - .. Taskbar
      - Cut
      - Copy
      - ..Shortcut
      - Delete
      - Rename
      - Properties
      
      In the explorer - you marked an exe-file, the options have an item 'Pin to Start'.
      --
      Frank
    • Yes, it will work must work in Windows 8.1
  • how to use this thing?
    1 Posts | Last post March 21, 2014
    • I had tried the get-help command.it couldn't find the file
  • Getting error running createwindowstile cmdlet
    4 Posts | Last post December 29, 2013
    • Anyone can give me help?
      I have error message when running CreateWindowsTile.psm1 from my PowerShell_ise.
      The following error message return back:
      
      Exception calling "Save" with "0" argument(s): "Unable to save shortcut "C:\ProgramData\Microsoft\Windows\Start 
      Menu\Programs\Restart.lnk"."
      At C:\Script\CreateWindowsTile.psm1:132 char:5
      +     $RestartShortcut.Save()
      +     ~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
          + FullyQualifiedErrorId : ComMethodTargetInvocation
       
      You cannot call a method on a null-valued expression.
      At C:\Script\CreateWindowsTile.psm1:137 char:5
      +     $RestartLnkPath.SetIconLocation("$env:SystemRoot\System32\SHELL32.dll",238)
      +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
          + FullyQualifiedErrorId : InvokeMethodOnNull
       
      You cannot call a method on a null-valued expression.
      At C:\Script\CreateWindowsTile.psm1:138 char:5
      +     $RestartLnkPath.Save()
      +     ~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
          + FullyQualifiedErrorId : InvokeMethodOnNull
       
      You cannot call a method on a null-valued expression.
      At C:\Script\CreateWindowsTile.psm1:141 char:5
      +     $RestartVerbs = $RestartLnk.Verbs()
      +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
          + FullyQualifiedErrorId : InvokeMethodOnNull
       
      Failed to create Windows restart tile.
      
      Thank you for your help.
      
      Budhi
      PS newbee
    • Run as Admin
    • Exec powershell_ise as administrator e try it
    • scripting as tough as simple the interface with the GUI...
  • Can CreateWindowsTile.psm1 be push from task sequence?
    1 Posts | Last post December 06, 2013
    • I was wondering if CreateWindowsTile.psm1 can execute through the sccm task sequence. Thanks
  • Script Figures Missing
    1 Posts | Last post November 16, 2013
    • In the documentation explaining how to use the script, none of the figures appear which are necessary to explain what is being done. This is true both in Chrome and IE browsers. Without that, it is impossible to know what to do.
1 - 10 of 25 Items