. "$PSScriptRoot\_common.ps1" Section 'firewall-ssh-22' { Remove-NetFirewallRule -DisplayName 'SSH TCP 22 (Allow Inbound)' -ErrorAction SilentlyContinue New-NetFirewallRule -DisplayName 'SSH TCP 22 (Allow Inbound)' ` -Direction Inbound -Protocol TCP -LocalPort 22 -Action Allow -Profile Any -Enabled True | Out-Null Set-NetFirewallProfile -Profile Domain,Private,Public -Enabled True }