Run PowerShell script as Administrator

From DanIT
Revision as of 20:21, 29 June 2022 by 89.98.99.134 (talk) (Created page with "= = By default on Windows, there is no easy way to run a PowerShell script as administrator.<br> You cannot elevate from the script with 'Run with PowerShell', so you have to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

By default on Windows, there is no easy way to run a PowerShell script as administrator.
You cannot elevate from the script with 'Run with PowerShell', so you have to run PowerShell as administrator, browse to the directory of the script, and open/run it.