Getting all open PS Sessions on a remote server (from new console window)
问题 I can start 5 new PS sessions on a remote server and see them all by running Get-PSSession PS C:\> New-PSSession -ComputerName MyServerName Id Name ComputerName State ConfigurationName Availability -- ---- ------------ ----- ----------------- ------------ 1 Session1 MyServerName Opened Microsoft.PowerShell Available [repeat 4 more times] As expected, when I try to open a 6th session, I get the error saying that's a no-no (due to PoswerShells default limit of 5 concurrent remote PSSessions).