How to Run PowerShell as Administrator

There are times we should have opened PowerShell with ‘Run as administrator‘ to execute commands which require elevated privileges. There are different easy methods to run a PowerShell as an administrator in Windows Operating system. Here, we have listed three methods to start a new PowerShell console as Administrator.

Summary

Run PowerShell as Administrator from a Right-Click menu

One of the easiest ways to run PowerShell as an administrator is from a right-click menu. You can simply type ‘powershell‘ in search bar (Cortana Search bar in Windows 10 and later). Right-click on the Windows PowerShell and then select the Run as administrator. It will open a Windows PowerShell console with elevated privilege. In the latest Windows OS, you can see this option by clicking right-arrow. 

Run Powershell as Administrator from a Right-Click menu

Run PowerShell as Administrator from an existing PowerShell console

If you already working with PowerShell console as a normal user, then you can simply type the following command and press ‘Enter‘ key to open a new PowerShell console as administrator.

start-process PowerShell -verb runas 
Run PowerShell as Administrator from  existing PowerShell console

Run PowerShell as an Administrator from Command prompt

Follow the below steps to start PowerShell as administrator from the Command window. Type ‘PowerShell’ in the command window and then press ‘Enter’ key. Now, the command prompt will run as a PowerShell console.

Run PowerShell as Administrator from Command prompt

Now, type the following command and press ‘Enter‘ key to open PowerShell console with elevated privilege.

start-process PowerShell -verb runas
Run PowerShell as Administrator from Command prompt
Advertisement