6 lines
		
	
	
		
			No EOL
		
	
	
		
			424 B
		
	
	
	
		
			PowerShell
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			No EOL
		
	
	
		
			424 B
		
	
	
	
		
			PowerShell
		
	
	
	
	
	
| Get-NetFirewallRule -Enabled True -Direction Inbound | select -Property DisplayName,
 | |
| @{Name='Protocol';Expression={($_ | Get-NetFirewallPortFilter).Protocol}},
 | |
| @{Name='LocalPort';Expression={($_ | Get-NetFirewallPortFilter).LocalPort}},
 | |
| @{Name='RemotePort';Expression={($_ | Get-NetFirewallPortFilter).RemotePort}},
 | |
| @{Name='RemoteAddress';Expression={($_ | Get-NetFirewallAddressFilter).RemoteAddress}},
 | |
| Enabled,Profile |