use logon.bat instead of launching disable_smartscreen directly

This commit is contained in:
kistaro committed 2025-03-01 12:25:13 -08:00
1 parent 3dc9b3e4dd
commit 4457246008
4 files changed
+4 -2

No files matched your search

@@ -0,0 +1,5 @@
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableSmartScreen" -Type DWord -Value 0
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" -Force | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" -Name "EnabledV9" -Type DWord -Value 0
@@ -0,0 +1,2 @@
powershell.exe -ExecutionPolicy Bypass -File "C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\disable_smartscreen.ps1"