diff --git a/sandbox/SandboxInput/disable_smartscreen.ps1 b/sandbox/SandboxInput/LogonScripts/disable_smartscreen.ps1 similarity index 100% rename from sandbox/SandboxInput/disable_smartscreen.ps1 rename to sandbox/SandboxInput/LogonScripts/disable_smartscreen.ps1 diff --git a/sandbox/SandboxInput/LogonScripts/logon.bat b/sandbox/SandboxInput/LogonScripts/logon.bat new file mode 100644 index 0000000..49ab88e --- /dev/null +++ b/sandbox/SandboxInput/LogonScripts/logon.bat @@ -0,0 +1,2 @@ + +powershell.exe -ExecutionPolicy Bypass -File "C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\disable_smartscreen.ps1" diff --git a/sandbox/readSandboxInput-rwSandboxPersist.wsb b/sandbox/readSandboxInput-rwSandboxPersist.wsb index 7130862..4c76d12 100644 --- a/sandbox/readSandboxInput-rwSandboxPersist.wsb +++ b/sandbox/readSandboxInput-rwSandboxPersist.wsb @@ -23,7 +23,7 @@ false - powershell.exe -ExecutionPolicy Bypass -File "C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\disable_smartscreen.ps1" + C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\LogonScripts\logon.bat 8192 diff --git a/sandbox/readonly-SandboxInput.wsb b/sandbox/readonly-SandboxInput.wsb index 77120ab..48466f6 100644 --- a/sandbox/readonly-SandboxInput.wsb +++ b/sandbox/readonly-SandboxInput.wsb @@ -18,7 +18,7 @@ false - powershell.exe -ExecutionPolicy Bypass -File "C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\disable_smartscreen.ps1" + C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\LogonScripts\logon.bat 8192