Remove-SPEnterpriseSearchTopology -Identity $OldTopologyId -SearchApplication $ServiceApplication

Getting the below error when running the above PSScript

Remove-SPEnterpriseSearchTopology : Cannot bind parameter 'Identity'. Cannot convert the "c93430a5-8106-4b44-93ff-3bfe0582a381" value of type "System.Guid" to type "Microsoft.Office.Server.Search.Cmdlet.SearchTopologyPipeBind". At C:\install\Start-2013SearchServices.ps1:225 char:57 + Remove-SPEnterpriseSearchTopology -Identity $OldTopologyId -SearchAp ... + ~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Remove-SPEnterpriseSearchTopology], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Office.Server.Search.Cmdlet.RemoveSearchTopology

1 Answer 1


Use Get-SPEnterpriseSearchTopology and then pass that into the Remove-SPEnterpriseSearchTopology

$topo = Get-SPEnterpriseSearchTopology -SearchApplication $ServiceApplication -Identity 'c93430a5-8106-4b44-93ff-3bfe0582a381'
Remove-SPEnterpriseSearchTopology $topo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.