i’ve setup psremoting on linux servers and have hundreds. invoke-command works when using 32 or less servers. anymore than that will give this error OpenError: An error has occurred which PowerShell cannot handle. A remote session might have ended. on most of them. It runs perfectly fine if I have less than 32 servers so I’m sure there’s a limit I’m hitting. I’m running this command from a ubuntu 22 server against other ubuntu 22 servers with powershell remoting installed. Here’s the command that just returns the hostname. the $servers var simply holds a list of my target servers.
invoke-Command -host $servers -script {hostname}