In order to Run PowerShell Script as a run Administrator on your Windows (10/11) or Windows Server, you can follow the below easy steps to elevate to an Admin.
Option 1: Right-Click on PowerShell Script file -> Run As Administrator
This is the quickest way to execute the script as an Administrator is by right-clicking on it and choosing "Run as Administrator".
Option 2: Using Start Menu
- Press Windows Button to open Search.
- Now Type PowerShell.
- On the PowerShell icon, right-click and select "Run as Administrator
- Navigate to your PowerShell script and execute it.

Option 3: Using Command Prompt
- Press Windows Button to open Search.
- Now Type Command Prompt.
- On the Command Prompt icon, right-click and select "Run as Administrator" to elevate to admin to run Powershell Script.
- You can execute the script as below,
powershell -ExecutionPolicy Bypass -File "D:\script.ps1
Option 4: using start-process cmdlet to elevate to Admin
If you have already logged into PowerShell and want to elevate as an Administrator, then you can make use of the start-process cmdlet.
start-process PowerShell verb runas

You can also run your script in admin mode with the below one-liner.
Start-Process powershell -ArgumentList "-ExecutionPolicy Bypass -File D:/scripts/schedular_task.ps1" -Verb RunAs
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!