Hi every,
normally, I will create multiple ps sessions and assign it to a variable with below way:
$mypss = New-PSSession -ComputerName (cat mycomputers.txt)
But sometimes, one of session is broken, how to repair it rather than create a new ps session.
Id Name Transport ComputerName ComputerType State ConfigurationName Availability
-- ---- --------- ------------ ------------ ----- ----------------- ------------
77 Runspace77 WSMan xxxx RemoteMachine Broken Microsoft.PowerShell None
Thanks in advance.