Guest User

Untitled

a guest
Oct 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. function IsConnectionActive($Port)
  2. {
  3. $result = Test-NetConnection -Port $Port -ComputerName "localhost"
  4. return $result.TcpTestSucceeded
  5. }
Add Comment
Please, Sign In to add comment