PS C:\Users\Administrator> New-NetFirewallRule -DisplayName "Allow RDP 3389" -Direction Inbound -Protocol TCP -LocalPort 3389 -Action Allow -Enabled True
Name : {4373aa04-dfec-405e-aa57-0fd744c37940}
DisplayName : Allow RDP 3389
Description :
DisplayGroup :
Group :
Enabled : True
Profile : Any
Platform : {}
Direction : Inbound
Action : Allow
EdgeTraversalPolicy : Block
LooseSourceMapping : False
LocalOnlyMapping : False
Owner :
PrimaryStatus : OK Status : The rule was parsed successfully from the store. (65536) EnforcementStatus : NotApplicable PolicyStoreSource : PersistentStore PolicyStoreSourceType : Local RemoteDynamicKeywordAddresses : {} PolicyAppId : PackageFamilyName : PS C:\Users\Administrator> Get-NetFirewallProfile | Select Name, Enabled, DefaultInboundAction Name Enabled DefaultInboundAction ---- ------- -------------------- Domain True NotConfigured
Private True NotConfigured
Public True NotConfigured
PS C:\Users\Administrator> Test-NetConnection 8.8.8.8 -Port 53
ComputerName : 8.8.8.8
RemoteAddress : 8.8.8.8
RemotePort : 53
InterfaceAlias : Ethernet
SourceAddress : 64.188.65.53
TcpTestSucceeded : True
PS C:\Users\Administrator> Get-NetRoute -DestinationPrefix "0.0.0.0/0" | Select NextHop, InterfaceAlias
NextHop InterfaceAlias
------- --------------
10.0.0.1 Ethernet