Hi,
Is there a way to have Test-NetConnection not perform a ping test ? I am only trying to check if a specific port is opened and can't seem to find the option to remove the ping test.
RemotePort : 53
InterfaceAlias : Ethernet
SourceAddress : 10.1.0.30
PingSucceeded : False
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded : True
Above a typical case where I know ping will fail and I'd rather not spend the time waiting for a timeout or getting a nifty warning message especially when running this in a bigger script. When you are testing thousands of firewall rules, the ping test requires time which increases the runtime of the script (by a LOT).
Regards,