Wednesday, December 16, 2009

Solving ThreadOptions error in the SharePoint 2010 Management Shell

I noticed that when I tried to open the SharePoint 2010 Management Shell on my machine I got an error stating:

Exception setting "ThreadOptions": "This property cannot be changed after the Runspace has been opened." At C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\SharePoint.ps1:2 char:48
+ if ($ver.Version.Major -gt 1)  {$Host.Runspace. <<<< ThreadOptions = "ReuseThread"}    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException    + FullyQualifiedErrorId : PropertyAssignmentException

Thanks to Bill Baer for providing me with a solution in the SharePoint 2010 forums –installing Update KB968930 which contains the Windows Management Framework Core package fixed the error.

1 comment:

  1. Just what I needed. Thanks to you and Bill for posting the solution.

    ReplyDelete