Run PowerShell Script As Administrator

Just as the Command prompt was introduced to execute commands, Powershell is an advanced version of CMD. With the help of Powershell, you can perform administrative tasks more easily and is also a scripting language. In the computer world, Shell is usually referred to as an interface that can be used to access services of the operating system. Initially developed by Microsoft, PowerShell is now an open-source project and can also be installed on MAC and Linux. In this post today we are going to explore PowerShell and the steps to run Powershell as an administrator on your PC.

Windows Powershell Script And What is it Used For?

As told above, Powershell is an advanced version of the command prompt. It was developed by Microsoft to manage the admin tasks and configuration. The tasks here are performed generally by command-lets or cmdlets that are trained .Net classes to implement the specific operations. Powershell can help you being more productive if you are a system administrator. It contains a huge collection of customizable commands that can help you in time-consuming tasks otherwise.

As a normal user, you can get several tasks done using Windows PowerShell Script:

  • Perform all CMD tasks
  • Stop a process using Powershell instead of using Taskbar
  • Run a tedious task in the background
  • Script a Cmdlet for a task that you perform multiple times a day.
  • Trouble-free access to data

4 Different Methods To Open Powershell Script As Administrator?

Running Powershell script as administrator is not a difficult task though. Powershell as administrator provides you with elated authority. These simple steps will guide you in running PowerShell as an administrator.

Before running PowerShell as an administrator you must have a Windows PC, an account with admin access, and a Powershell app installed on your PC. Download the PowerShell app from this link.

There are multiple methods that can help you run PowerShell as an administrator. We are going to list all of them and you can try any of them at your convenience.

Using Run box

Press the “Windows R” button to run the dialog box and write “Powershell” in the search bar.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/image1-31.png" data-lazy- height="313" src="data:image/svg xml,” width=”594″>

Hit enter and this open Powershell on your device. Paste the command start-process PowerShell -verb runas and press enter.

After hitting the enter button, grant the required permissions to run the app as an Administrator.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/image3-30.png" data-lazy- height="878" src="data:image/svg xml,” width=”1917″>

This will open another window of the Powershell script as administrator.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/image2.jpg" data-lazy- height="666" src="data:image/svg xml,” width=”1306″>

Using Command Prompt

Open command prompt using the run box or by searching on the windows menu.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/image5-23.png" data-lazy- height="707" src="data:image/svg xml,” width=”1233″>

In CMD, type Powershell and hit enter. Now you have entered into Powershell Script.

Paste the same command line start-process PowerShell -verb runas and hit the enter button. This will open PowerShell as an administrator in another window.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/image4-27.png" data-lazy- height="767" src="data:image/svg xml,” width=”1574″>

Using Task Manager

Open the task manager by using the shortcut keys Ctrl Alt Del.

Explore the File tab and Run a new task by clicking on the option given.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/image7-16.png" data-lazy- height="890" src="data:image/svg xml,” width=”1262″>

This opens a new window naming creates a new task. Type “Powershell” and click on “OK

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/image6-19.png" data-lazy- height="772" src="data:image/svg xml,” width=”1255″>

In the PowerShell type the same command start-process PowerShell -verb runas and hit enter to run it as administrator.

Using File Explorer

Navigate to file explorer on your device.

Enter the file menu on the top left corner.

Explore the “Open Windows Powershell” option given.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/09/echo/image8-16.png" data-lazy- height="607" src="data:image/svg xml,” width=”811″>

Now click on “Run Windows Powershell as Administrator

Click on the yes button for certain permissions to proceed and you are good to go.

The Conclusion

These were some simple methods to run the PowerShell script as an Administrator on your system. There are some other methods too but they are either too complex or might not work on all systems. If you are quite new to PowerShell then you can also refer to the docs from Microsoft.