1
vote
Accepted
Automatically run powershell script as administrator
Put this code in your ps1
$ArgumentList = @'
powercfg /setactive ab6534a3-bc02-4c44-94d1-a8535b2eb070
set-itemproperty -path 'HKLM:\SOFTWARE\Samsung\SamsungSettings\ModulePerformance' -name 'value' -...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
script × 2747linux × 520
bash × 519
windows × 504
powershell × 320
batch × 251
command-line × 243
shell × 220
windows-7 × 171
batch-file × 151
windows-10 × 139
shell-script × 136
automation × 130
macos × 118
autohotkey × 94
ubuntu × 82
unix × 81
boot × 63
cmd.exe × 63
bash-scripting × 59
terminal × 58
vbscript × 57
networking × 56
ssh × 50
python × 42