I have a script that is working wonderfully using the Invoke-Command cmdlet to run a process and get information from another server. Every few weeks the script errors out with the error below:
[IP] Connecting to remote server <IP> failed with the following error message : The WSMan service could not launch a host process to process the given request. Make sure the WSMan provider host server and proxy are properly registered. For more information, see the about_Remote_Troubleshooting Help topic. + CategoryInfo : OpenError: (<IP>:String) , PSRemotingTransportException + FullyQualifiedErrorId : -2146959355,PSSessionStateBroken
Restarting the WSMan service does not resolve the issue, but a server restart does. Any idea what is failing over time?
Sorry but this is a scripting forum and not a "fix my server" forum. YOU will have to do basic troubleshooting to track down your issue.