Contents
How do I run a ps1 file as administrator?
8 Answers
- Create a shortcut to your Powershell script on your desktop.
- Right-click the shortcut and click Properties.
- Click the Shortcut tab.
- Click Advanced.
- Select Run as Administrator.
How do I change to admin in PowerShell?
The easiest way to start elevated Powershell windows is by searching for it. Press the Windows button to open the start menu, and type Powershell. Select Run as administrator. Press Yes in the UAC prompt, and you are good to go!