MasterPSScript

Feb 14, 2012 at 12:43 PM

Hi Chris,

CI Starter Pack was very useful especially the buildserverscripts.

There was one small issue i faced. I got this error after i ran CI couple of times:

"Connecting to remote server failed with the following error message : The WS-Management service cannot process the request. This user is allowed a maximum number of 5 concurrent shells, which has been exceeded. Close existing shells or raise the quota for this user."

I did a little research on it and then found that the masterbuildscript.ps1 was creating a new session but was not closing that session before ending it.

Which is : $s = New-PSSession -ComputerName $SharePointDeployServer -Authentication CredSSP -Credential $credential  

So i added Remove-PSSession $s at the end which stopped that error from occuring.