Forum Discussion

phantom2000's avatar
phantom2000
Copper Contributor
Mar 22, 2022
Solved

Get result under a column

Hello,    I have a command that checks connectivity to a port.    Test-NetConnection -ComputerName google.com -Port 443 | Select-Object TcpTestSucceeded The result for this comes as follows.  ...
  • farismalaeb's avatar
    Mar 22, 2022
    $x=(Test-NetConnection -ComputerName google.com -Port 443 | Select-Object TcpTestSucceeded).TcpTestSucceeded