@@ -1053,13 +1053,18 @@ internal static void EnableForcedFeatureUpdates()
10531053
10541054 internal static void DisableSmartScreen ( )
10551055 {
1056+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" , "SaveZoneInformation" , "1" , RegistryValueKind . DWord ) ;
1057+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" , "ScanWithAntiVirus" , "1" , RegistryValueKind . DWord ) ;
1058+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" , "ShellSmartScreenLevel" , "Warn" , RegistryValueKind . String ) ;
10561059 Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" , "EnableSmartScreen" , "0" , RegistryValueKind . DWord ) ;
10571060 Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" , "SmartScreenEnabled" , "Off" , RegistryValueKind . String ) ;
10581061 Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\PhishingFilter" , "EnabledV9" , "0" , RegistryValueKind . DWord ) ;
10591062 }
10601063
10611064 internal static void EnableSmartScreen ( )
10621065 {
1066+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" , "SaveZoneInformation" , "2" , RegistryValueKind . DWord ) ;
1067+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" , "ScanWithAntiVirus" , "2" , RegistryValueKind . DWord ) ;
10631068 Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" , "EnableSmartScreen" , "1" , RegistryValueKind . DWord ) ;
10641069 Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" , "SmartScreenEnabled" , "On" , RegistryValueKind . String ) ;
10651070 Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\PhishingFilter" , "EnabledV9" , "1" , RegistryValueKind . DWord ) ;
0 commit comments