Windows 10 use powershell to disable - enable rule - unknown behaviour

  • Thread starter Thread starter Chandreshshah
  • Start date Start date
C

Chandreshshah

Guest
I am using windows 10 1909 latest version, with admin privilege's.

Ensure that you have rule for inbound and outbound.

Now you block rule from both direction, now enable the rule only for outbound, to notice all the rule are vanished from inbound and appearing in the outbound, some unknown behavior, any solution please advise how do I get the my inbound rules back.



PS C:\Windows\system32> get-netfirewallrule -displayname "*Media center*" | select displayname,Direction,Action DisplayName Direction Action ----------- --------- ------ Media Center Extenders - UPnP (TCP-Out) Outbound Allow Media Center Extenders - Media Streaming (UDP-Out) Outbound Allow
Media Center Extenders - Device Validation (TCP-Out) Outbound Allow
Media Center Extenders - Media Streaming (TCP-Out) Outbound Allow
Media Center Extenders - Media Streaming (TCP-In) Inbound Allow
Media Center Extenders - Device Provisioning (TCP-Out) Outbound Allow
Media Center Extenders - Service (TCP-Out) Outbound Allow
Media Center Extenders - WMDRM-ND/RTP/RTCP (UDP-Out) Outbound Allow
Media Center Extenders - WMDRM-ND/RTP/RTCP (UDP-In) Inbound Allow
Media Center Extenders - XSP (TCP-In) Inbound Allow
Media Center Extenders - HTTP Streaming (TCP-In) Inbound Allow
Media Center Extenders - qWave (TCP-Out) Outbound Allow
Media Center Extenders - qWave (TCP-In) Inbound Allow
Media Center Extenders - qWave (UDP-Out) Outbound Allow
Media Center Extenders - qWave (UDP-In) Inbound Allow
Media Center Extenders - RTSP (TCP-Out) Outbound Allow
Media Center Extenders - RTSP (TCP-In) Inbound Allow
Media Center Extenders - SSDP (UDP-Out) Outbound Allow
Media Center Extenders - SSDP (UDP-In) Inbound Allow


PS C:\Windows\system32> set-netfirewallrule -displayname "*media center*" -Action Block

PS C:\Windows\system32> get-netfirewallrule -displayname "*Media center*" | select displayname,Direction,Action DisplayName Direction Action ----------- --------- ------ Media Center Extenders - UPnP (TCP-Out) Outbound Block Media Center Extenders - Media Streaming (UDP-Out) Outbound Block
Media Center Extenders - Device Validation (TCP-Out) Outbound Block
Media Center Extenders - Media Streaming (TCP-Out) Outbound Block
Media Center Extenders - Media Streaming (TCP-In) Inbound Block
Media Center Extenders - Device Provisioning (TCP-Out) Outbound Block
Media Center Extenders - Service (TCP-Out) Outbound Block
Media Center Extenders - WMDRM-ND/RTP/RTCP (UDP-Out) Outbound Block
Media Center Extenders - WMDRM-ND/RTP/RTCP (UDP-In) Inbound Block
Media Center Extenders - XSP (TCP-In) Inbound Block
Media Center Extenders - HTTP Streaming (TCP-In) Inbound Block
Media Center Extenders - qWave (TCP-Out) Outbound Block
Media Center Extenders - qWave (TCP-In) Inbound Block
Media Center Extenders - qWave (UDP-Out) Outbound Block
Media Center Extenders - qWave (UDP-In) Inbound Block
Media Center Extenders - RTSP (TCP-Out) Outbound Block
Media Center Extenders - RTSP (TCP-In) Inbound Block
Media Center Extenders - SSDP (UDP-Out) Outbound Block
Media Center Extenders - SSDP (UDP-In) Inbound Block


PS C:\Windows\system32> set-netfirewallrule -displayname "*media center*" -Action Allow -Direction Outbound

PS C:\Windows\system32> get-netfirewallrule -displayname "*Media center*" | select displayname,Direction,Action

DisplayName Direction Action ----------- --------- ------ Media Center Extenders - UPnP (TCP-Out) Outbound Allow Media Center Extenders - Media Streaming (UDP-Out) Outbound Allow
Media Center Extenders - Device Validation (TCP-Out) Outbound Allow
Media Center Extenders - Media Streaming (TCP-Out) Outbound Allow
Media Center Extenders - Media Streaming (TCP-In) Outbound Allow
Media Center Extenders - Device Provisioning (TCP-Out) Outbound Allow
Media Center Extenders - Service (TCP-Out) Outbound Allow
Media Center Extenders - WMDRM-ND/RTP/RTCP (UDP-Out) Outbound Allow
Media Center Extenders - WMDRM-ND/RTP/RTCP (UDP-In) Outbound Allow
Media Center Extenders - XSP (TCP-In) Outbound Allow
Media Center Extenders - HTTP Streaming (TCP-In) Outbound Allow
Media Center Extenders - qWave (TCP-Out) Outbound Allow
Media Center Extenders - qWave (TCP-In) Outbound Allow
Media Center Extenders - qWave (UDP-Out) Outbound Allow
Media Center Extenders - qWave (UDP-In) Outbound Allow
Media Center Extenders - RTSP (TCP-Out) Outbound Allow
Media Center Extenders - RTSP (TCP-In) Outbound Allow
Media Center Extenders - SSDP (UDP-Out) Outbound Allow
Media Center Extenders - SSDP (UDP-In) Outbound Allow

More...
 

Similar threads

Back
Top