When I import the Module for operations manager and then try and call one of the Cmdlets the session gets broken. Here is an example of the code and the call I make that breaks the session:
Error that follows:
Processing data for a remote command failed with the following error message: The WSMan provider host process did not return a proper response. A
provider in the host process may have behaved improperly. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OperationStopped: (pgscom1p:String) , PSRemotingTransportException
+ FullyQualifiedErrorId : JobFailure
+ PSComputerName : ScomServer
if you look at the sessions you’ll notice one is broken and new one has been opened.
PS PS:> get-pssession
Id Name ComputerName State ConfigurationName Availability
5 Session for … ScomServer Broken Microsoft.PowerShell None
4 Session4 ScomServer Opened Microsoft.PowerShell Available