I have been trying to find a cmdlet to do this but I havent been able to. I want to create a content source with a starting url, the problem is that url already exists on the default content source so I want to remove it from there. But I want to do it with powershell, any help is appreciated.
I would do it like this:
And I know this works, it is used as part of a deployment package for an application I'm working on, and has been tested and successfully deployed across several environments.
[Note: we use SharePoint Server 2010 / SharePoint Server Search, not Foundation or FAST, so I'm not sure how it would work in those cases, if that is your environment.]
You can achieve this using the next powershell snippet:
I tried it and it works.