We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

So you start Opening ports with Powershell

09-02-2015, 08:43
Why would you want to do something like that in the first place?

01-02-2015, 20:20

I have tried many times without success to open a port in my Hyper-V 2012 R2 environment without success. As a test I am trying to open the port 123 for inbound connections. The powershell line that I am using is:

New-NetFirewallRule -DisplayName "Test" -Direction Inbound -LocalPort 123 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName "Test2" -Direction Outbound -LocalPort 123 -Protocol TCP -Action Allow

Can someone tell me the right way to open up ports on my server?

Thanks in advance.