I'm currently exporting Search scopes from one server and importing them to another using PowerShell. The thing that has me bewildered is what -URL parameter is used for in the ...
I'm having a very strange problem with the Scopes.GetDisplayGroup() method returning a "Specified cast is not valid" error. This is a cut-down version of the code I've been using: $SPWebApp = ...
I am trying to edit the Searchbox Scopes dropdown ScopeDisplayGroup using Powershell using the following code (partly backwards engineered from the scope edit layouts page codebehinds): ...
When run, this code returns an error on the last line "Error Calling GetDisplayGroup with 2 arguments, Specified cast is not valid". $site=get-spsite http://xxx/sites/xxx ...