Update 'quickrun.bat'

quickrun.bat was not resetting the execution policy. This fixes this.
This commit is contained in:
efrick 2021-05-05 17:53:14 -04:00
parent bf11d64feb
commit 9170d37d0c

View File

@ -3,4 +3,4 @@ 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"
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"