use logon.bat instead of launching disable_smartscreen directly

This commit is contained in:
Kistaro Windrider 2025-03-01 12:25:13 -08:00
parent 3dc9b3e4dd
commit 4457246008
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8
4 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
powershell.exe -ExecutionPolicy Bypass -File "C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\disable_smartscreen.ps1"

View File

@ -23,7 +23,7 @@
<ClipboardRedirection>false</ClipboardRedirection> <ClipboardRedirection>false</ClipboardRedirection>
<LogonCommand> <LogonCommand>
<Command>powershell.exe -ExecutionPolicy Bypass -File "C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\disable_smartscreen.ps1"</Command> <Command>C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\LogonScripts\logon.bat</Command>
</LogonCommand> </LogonCommand>
<MemoryInMB>8192</MemoryInMB> <MemoryInMB>8192</MemoryInMB>

View File

@ -18,7 +18,7 @@
<ClipboardRedirection>false</ClipboardRedirection> <ClipboardRedirection>false</ClipboardRedirection>
<LogonCommand> <LogonCommand>
<Command>powershell.exe -ExecutionPolicy Bypass -File "C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\disable_smartscreen.ps1"</Command> <Command>C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\LogonScripts\logon.bat</Command>
</LogonCommand> </LogonCommand>
<MemoryInMB>8192</MemoryInMB> <MemoryInMB>8192</MemoryInMB>