8 lines
193 B
Markdown
8 lines
193 B
Markdown
# 🔐 Forcing Script Execution as Administrator
|
|
|
|
## 🔧 What it does
|
|
By adding the following line at the **beginning** of a PowerShell script:
|
|
|
|
```powershell
|
|
#Requires -RunAsAdministrator
|
|
``` |