This PowerShell Script shows how to create a Windows 8 Switch User tile for the Start menu.
Properly switching users in Windows 8 without a Start button can be a bit of a chore. Many users may want to switch users in just one click. This script enables users to click a tile to switch user on the Start menu.
Step1: Run the script in the Windows PowerShell Console, type the one command: <Script Path> at the prompt.
For example, type C:\Script\ CreateSwitchUserWindowsTile.ps1
The step is shown in the following figure.

When the script finishes running,
Windows PowerShell Console displays brief information about the script.

The result is shown in the
following figure.
Here are some code snippets for your references. To get the complete script sample, please click the download button at the beginning of this page.
$SwitchUserLnk = $Desktop.ParseName($SwitchUserShortcutPath)
$SwitchUserLnkPath = $SwitchUserLnk.GetLink
$SwitchUserLnkPath.SetIconLocation("$env:SystemRoot\System32\SHELL32.dll",264)
$SwitchUserLnkPath.Save()
$SwitchUserLnk = $Desktop.ParseName($SwitchUserShortcutPath) $SwitchUserLnkPath = $SwitchUserLnk.GetLink $SwitchUserLnkPath.SetIconLocation("$env:SystemRoot\System32\SHELL32.dll",264) $SwitchUserLnkPath.Save()
Windows PowerShell 3.0
Windows 8
Additional Resources