Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- -------------------------------------------------------------------------------------------------------------------------
- SRC:
- Doc.MS:
- Manual: https://ss64.com/ps
- Help: get-help <cmdlet> -online
- Elevated: Y
- PowerShell ver. 3
- GUI: wf.msc -> https://imgur.com/2WSadxZ
- O/P:
- Args:
- -Protocol ICMPv4 | ICMPv6
- -------------------------------------------------------------------------------------------------------------------------
- ◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼
- mp4:
- ◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼
- #>
- #https://imgur.com/HMr8yJR
- new-NetFirewallRule -DisplayName "DHCP Server v4 (UDP-in)" -Description "An inbound rule to allow traffic to the IPv4 Dynamic Host Control Protocol Server. [UDP 69]" -Enabled:true -protocol udp -localPort 69 -program %systemRoot%\system32\svchost.exe -group "DHCP Server" -direction Inbound
- #
- New-NetFirewallRule -DisplayName "Allow inbound ICMPv4" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress <localsubnet> -Action Allow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement