Skip to main content

Starts PowerShell using the Run as administrator option.

# Start PowerShell as an administrator (note: only works in PowerShell Desktop/Windows)
Start-Process -FilePath "powershell" -Verb RunAs