One of the systems administration hurdles of the post-Vista world is figuring out how to make a script run as an administrator.
In PowerShell V2, using the Start-Process cmdlet, this is a one liner that will get the job done:
Start-Process"$psHome\powershell.exe"-VerbRunas-ArgumentList'-command "Get-Process"'
Hope this Helps,
James Brundage [MSFT]
0 comments