@@ -18,7 +18,7 @@ Online documentation: https://github.com/MichaelGrafnetter/active-directory-fire
1818
1919. NOTES
2020Author: Michael Grafnetter
21- Version: 2.5
21+ Version: 2.7
2222
2323#>
2424
@@ -254,14 +254,18 @@ if($configuration.EnableNetbiosNameService -or $configuration.EnableNetbiosDatag
254254 Write-Warning - Message ' NetBIOS is a legacy protocol and should be disabled in modern networks.'
255255}
256256
257- if (-not ($configuration.DisableLLMNR -and $configuration.DisableMDNS -and $configuration .DisableNetbiosBroadcasts )) {
258- Write-Warning - Message ' Only the DNS protocol should be used for name resolution in modern networks.'
257+ if (-not ($configuration.DisableLLMNR -and $configuration.DisableMDNS )) {
258+ Write-Warning - Message ' Only the DNS protocol should be used for name resolution in modern networks. Protocols using distributed name resolution, including LLMNR and mDNS, should be disabled on DCs. '
259259}
260260
261261if (-not ($configuration.LogMaxSizeKilobytes -ge 16384 -and $configuration.LogDroppedPackets -and $configuration.LogAllowedPackets )) {
262262 Write-Warning - Message ' The firewall log settings do not meet the standardized security baselines.'
263263}
264264
265+ if ($configuration.BlockWmiCommandExecution -eq $true ) {
266+ Write-Warning - Message ' SCCM client and DP do not work properly on systems where command execution over WMI is blocked.'
267+ }
268+
265269# endregion Configuration Validation
266270
267271# region Create and Configure the GPO
@@ -1697,44 +1701,6 @@ Save-NetGPO -GPOSession $gpoSession
16971701
16981702# region Registry Settings
16991703
1700- # Set the Delivery Optimization Download Mode to Simple
1701- # DCs should not be downloading updates from peers.
1702- Set-GPRegistryValue - Guid $gpo.Id `
1703- - Key ' HKLM\Software\Policies\Microsoft\Windows\DeliveryOptimization' `
1704- - ValueName ' DODownloadMode' `
1705- - Value 99 `
1706- - Type DWord `
1707- - Domain $domain.DNSRoot `
1708- - Server $targetDomainController `
1709- - Verbose:$isVerbose > $null
1710-
1711- # Set Allow Telemetry to Security [Enterprise Only]
1712- Set-GPRegistryValue - Guid $gpo.Id `
1713- - Key ' HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection' `
1714- - ValueName ' AllowTelemetry' `
1715- - Value 0 `
1716- - Type DWord `
1717- - Domain $domain.DNSRoot `
1718- - Server $targetDomainController `
1719- - Verbose:$isVerbose > $null
1720-
1721- # Turn off Application Telemetry
1722- Set-GPRegistryValue - Guid $gpo.Id `
1723- - Key ' HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat' `
1724- - ValueName ' AITEnable' `
1725- - Value 0 `
1726- - Type DWord `
1727- - Domain $domain.DNSRoot `
1728- - Server $targetDomainController `
1729- - Verbose:$isVerbose > $null
1730-
1731- <#
1732- TODO: Add more registry settings
1733- - OneSettings
1734- - Allow Diagnostic Data to Disabled.
1735- Administrative Template > Windows Components > Data Collection and Preview Builds
1736- #>
1737-
17381704# Prevent users and apps from accessing dangerous websites
17391705# (Enables Microsoft Defender Exploit Guard Network Protection)
17401706# This might block some Internet C2 traffic.
0 commit comments