scripting:ps1:test_netconnection

Test-Connection

Ich muss immer wieder mal überprüfen, ob ein System erreichbar ist und jedes Mal muss ich wieder nach dem Befehl suchen, daher diese kleine Doku.

Link: https://learn.microsoft.com/de-de/powershell/module/microsoft.powershell.management/test-connection?view=powershell-7.4

PS C:\Users\Reto> Test-NetConnection -ComputerName bluewin.ch -port 443

  • ComputerName : bluewin.ch
  • RemoteAddress : 213.3.75.39
  • RemotePort : 443
  • InterfaceAlias : WLAN
  • SourceAddress : 192.168.?.?
  • TcpTestSucceeded : True

PS C:\Users\Reto> Test-NetConnection -ComputerName imaps.bluewin.ch -port 993

  • ComputerName : imaps.bluewin.ch
  • RemoteAddress : 195.186.136.189
  • RemotePort : 993
  • InterfaceAlias : WLAN
  • SourceAddress : 192.168.?.?
  • TcpTestSucceeded : True
  • scripting/ps1/test_netconnection.txt
  • Zuletzt geändert: 09.06.2024
  • von 127.0.0.1