Windows

From wiki.tamerz.com
Jump to: navigation, search

To create a shortcut to Windows Update on the desktop for all users:

In C:\Users\Public\Desktop create a shortcut with the following path:

 %SystemRoot%\explorer.exe shell:::{36eef7db-88ad-4e81-ad49-0e313f0c35f8}

To make the icon match, use the one located in the following DLL:

 %SystemRoot%\System32\wucltux.dll

You can use this PowerShell script to automatically create it:

 $WshShell = New-Object -comObject WScript.Shell
 $Shortcut = $WshShell.CreateShortcut("$env:PUBLIC\Desktop\Windows Update.lnk")
 $Shortcut.TargetPath = "$env:SystemRoot\explorer.exe"
 $Shortcut.Arguments = "shell:::{36eef7db-88ad-4e81-ad49-0e313f0c35f8}"
 $Shortcut.WorkingDirectory = "$env:SystemRoot"
 $Shortcut.IconLocation = "$env:SystemRoot\System32\wucltux.dll"
 $Shortcut.Save()