Search
 
SCRIPT & CODE EXAMPLE
 

POWERSHELL

How to display firewall rule ports with powershell

Get-NetFirewallRule -DisplayGroup 'Remote Desktop' |
Format-Table -Property Name,
DisplayName,
DisplayGroup,
@{Name='Protocol';Expression={($PSItem | Get-NetFirewallPortFilter).Protocol}},
@{Name='LocalPort';Expression={($PSItem | Get-NetFirewallPortFilter).LocalPort}},
@{Name='RemotePort';Expression={($PSItem | Get-NetFirewallPortFilter).RemotePort}},
@{Name='RemoteAddress';Expression={($PSItem | Get-NetFirewallAddressFilter).RemoteAddress}},
Enabled,
Profile,
Direction,
Action
Comment

PREVIOUS NEXT
Code Example
Powershell :: get-childitem supress errors silently 
Powershell :: powershell get my documents folder 
Powershell :: ps where-object 
Gdscript :: godot get scene root 
Gdscript :: godot 2d set position to mouse 
Gdscript :: godot saving enum names in variable 
Clojure :: algorithm to reverse a string clojure 
Abap :: sap checkbox abap 
Erlang :: tcp client erlang 
Assembly :: flops in deep learning 
Assembly :: wstring to lpcwstr 
Assembly :: node js vulnerabilities 
Assembly :: io mapped io and memory mapped io in 8085 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: jquery disable input 
Javascript :: regex cpf 
Javascript :: setinterval jquery 
Javascript :: align image center react native 
Javascript :: get parameter from the actual url javascript 
Javascript :: update node.js dependencies 
Javascript :: How disable button jquery 
Javascript :: react native password input 
Javascript :: You seem to not be depending on "@angular/core" and/or "rxjs". This is an error. 
Javascript :: jquery datepicker no weekends 
Javascript :: remove punctuation marks from string js 
Javascript :: js reload iframe 
Javascript :: how to color console.log 
Javascript :: disable all element in div angular 12 
Javascript :: convert hexadecimal to decimal js 
Javascript :: intval js 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =