use logon.bat instead of launching disable_smartscreen directly
This commit is contained in:
		@@ -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
 | 
			
		||||
							
								
								
									
										2
									
								
								sandbox/SandboxInput/LogonScripts/logon.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								sandbox/SandboxInput/LogonScripts/logon.bat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
 | 
			
		||||
powershell.exe -ExecutionPolicy Bypass -File "C:\Users\WDAGUtilityAccount\Desktop\SandboxInput\disable_smartscreen.ps1"
 | 
			
		||||
		Reference in New Issue
	
	Block a user