Hi,
I am trying to get the output from linux VM and I am getting the output in single line. But I would like to split the output in multiple lines
I tried as $(($result.output) -split '.') but no luck
Please help!!!
Script
$session = New-SSHSession -ComputerName $vm -Credential $Cred –AcceptKey
$result = Invoke-SSHCommand -SSHSession $session -Command $cmd
$result.output
Output
McAfee agent service is already running. McAfee common services is already running. McAfee compat service is already running
I would like to get this output in multiple lines as below
McAfee agent service is already running.
McAfee common services is already running.
McAfee compat service is already running