How to create a Run As Administrator shortcut using Powershell
In my PowerShell script, I create a shortcut to a .exe (using something similar to the answer from this question ): $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$Home\Desktop\ColorPix.lnk") $Shortcut.TargetPath = "C:\Program Files (x86)\ColorPix\ColorPix.exe" $Shortcut.Save() Now, when I create the shortcut, how do I add to the script to make it default to running as Administrator? Jan Chrbolka This answer is a PowerShell translation of an excellent answer to this question How can I use JScript to create a shortcut that uses "Run as Administrator" . In