Wednesday 18 June 2014

Windows Powershell - Starting As An Elevated User

Two Commands to Start PowerShell As an Elevated User.

Run Both Commands separately on one line. Both Commands do the same job. Just replace USER and DOMAIN accordingly.


  • Start-Process powershell.exe -Credential "DOMAIN\USER" -NoNewWindow -ArgumentList "Start-Process powershell.exe -Verb runAs"
  • C:\Windows\System32\runas.exe /env /noprofile /user:USER@DOMAIN "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -command \"start-process powershell -verb RunAs\""

No comments:

Post a Comment