From 9170d37d0cca7d73ee204172cd1ab9919a81a8a1 Mon Sep 17 00:00:00 2001 From: efrick Date: Wed, 5 May 2021 17:53:14 -0400 Subject: [PATCH] Update 'quickrun.bat' quickrun.bat was not resetting the execution policy. This fixes this. --- quickrun.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickrun.bat b/quickrun.bat index 24b86d1..9ddd76d 100644 --- a/quickrun.bat +++ b/quickrun.bat @@ -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"