use logon.bat instead of launching disable_smartscreen directly

This commit is contained in:
2025-03-01 12:25:13 -08:00
parent 3dc9b3e4dd
commit 4457246008
4 changed files with 4 additions and 2 deletions

View File

@ -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

View File

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