Files
Batch-Scripts/Utility Scripts/Start powershell script as admin.bat
T

3 lines
244 B
Batchfile
Raw Normal View History

REM Used so you can simply double click the .bat file to make a PowerShell script run (.ps1 scripts don't run as admin by default when double clicking)
Powershell.exe -executionpolicy remotesigned -file "C:\Users\%UserName%\Desktop\script.ps1"