Sysinfo/quickrun.bat
efrick 9170d37d0c Update 'quickrun.bat'
quickrun.bat was not resetting the execution policy. This fixes this.
2021-05-05 17:53:14 -04:00

7 lines
447 B
Batchfile

ECHO off
REM Runs the quick run commands form the readme.md
REM https://efrick.ddns.net/git/efrick/Sysinfo/src/branch/master/README.md#quick-run
REM This must be run from an elevated prompt.
Powershell.exe -command "$current_execution_policy = Get-ExecutionPolicy; Set-ExecutionPolicy Bypass CurrentUser;$current_path = pwd; .\sysinfo.ps1 -write_output -file_location $current_path.Path;Set-ExecutionPolicy $current_execution_policy CurrentUser"