4

So first, the following worked fine 3 days ago against the same sharepoint server, works fine against other sharepoint servers in the farm, and after I did something I’ll elaborate on later works fine again.

But for 3 days, I could constantly break my runspace by doing the following

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

so far so good

Enter-PSSession $sess

so far so good

Add-PSSnapin Microsoft.SharePoint.PowerShell

Still good

I can do 0 or more different Sharepoint gets, like Get-SPServer

But then when I do:

Get-SPServiceApplication

I get:

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.

The session kicks back to my main session, and the runspace is broken.

This was consistent, and I’m not sure why. I can run it fine against other servers in the farm, and could run it against this server up until a few days ago

Whats interesting is what "FIXED" it.

So I figured to investigate further I could Terminal Services into the actual machine and run it locally. I did that and it ran locally without error, then AFTER that it ran normally through remoting as well.

Does anybody have a clue what is going on?

4

1 回答 1

1

如果不将机器“倒回”回远程桌面前状态并比较前后状态(注册表,网络活动,sql,文件系统),真的很难回答。我的猜测是某种一次性初始化过程在使用时失败credssp 代表团,但这可能很明显。

于 2011-04-02T00:32:24.023 回答