This content has been marked as final. Show 2 replies
The $session variable will be empty since you redirect the result of the New-SSHSession cmdlet to Out-Null
Replace that line with$session = New-SSHSession $row.Server -Credential $Cred -AcceptKey -ErrorAction StopBlog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
Thank you very much LucD.