Powershell Sudo (sort of) for Vista UAC
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
Bookmark History
Public Sticky notes
Wes Haggard sent me an email this morning that caused me to "slap myself upside the head":
Oops. My bad. Hahaha... can't believe I didn't try that. :)Why got through this trouble when you can just user Process.Start?
PS> $psi = new-object System.Diagnostics.ProcessStartInfo "notepad.exe"
PS> $psi.Verb = "runas"
PS> [System.Diagnostics.Process]::Start($psi)
Highlighted by fmavituna


Public Comment