diff --git a/content/seed/payload/bootstrap.ps1 b/content/seed/payload/bootstrap.ps1 index d13adc6..77f3a81 100644 --- a/content/seed/payload/bootstrap.ps1 +++ b/content/seed/payload/bootstrap.ps1 @@ -48,6 +48,13 @@ Set-NetFirewallRule -DisplayGroup 'Windows Remote Management' -Enabled True -Pro # workstation invisible to a normal SMB scan. Enable-NetFirewallRule -DisplayGroup 'File and Printer Sharing' -ErrorAction SilentlyContinue +# ICMP echo: Windows drops it by default, and "ping the DC" is the first thing +# anyone does. A lab where ping fails looks broken even when it is not. +if (-not (Get-NetFirewallRule -DisplayName 'Norbourg ICMPv4' -ErrorAction SilentlyContinue)) { + New-NetFirewallRule -DisplayName 'Norbourg ICMPv4' -Protocol ICMPv4 -IcmpType 8 ` + -Direction Inbound -Action Allow -Profile Any | Out-Null +} + # RDP: useful for the instructor when a step misbehaves. Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' ` -Name fDenyTSConnections -Value 0