Runspace is broken. (Remoting, WinRM and Sharepoint)

So, at first I worked fine 3 days ago with the same sharepoint server, it copes well with other sharepoint servers in the farm, and after I did something, I will tell you in detail about the subsequent work.

But within 3 days I could constantly tear my space by doing the following

  $ sess = new-pssession –computername $ comp –Credential $ cred –Authentication CredSSP 

so good

  Enter-PSSession $ sess 

so good

  Add-PSSnapin Microsoft.SharePoint.PowerShell 

Still good

I can make 0 or more different Sharepoints like Get-SPServer

But when I do this:

  Get-SPServiceApplication 

I get:

The data processing for the remote command failed to complete the following message error: WSMan provider host process did not return a proper response. The provider on the host process may behave improperly. For more information, see _Remote_Troubleshooting Help Topic.

The session returns to my main session, and the execution space is interrupted.

It was consistent, and I'm not sure why. I can run it perfectly with other servers in the farm and can run it against this server up to several days ago.

I wonder what "FIXED" is.

So, I decided to investigate further, I could use the terminal services in the real machine and run it locally. I did this, and it started locally without errors, then AFTER it worked fine and through remote access.

Does anyone know what is going on?

+4
source share
1 answer

Actually, it’s hard to answer that without rewinding the machine back to the pre-remotedesktop state and comparing it before and after the states (registry, network activity, sql, file system.) My assumption is a kind of one-time initialization process when using credssp delegation, but it is probably pretty obvious.

+1
source

Source: https://habr.com/ru/post/1346316/


All Articles