0

Get-SpSite

I am trying to find powershell syntax to list all the site collection for a given content database. Is there 1 line syntax for this?

Thanks

2

You can use the ContentDatabase parameter of Get-SPSite

Get-SPSite -ContentDatabase <guid or database name>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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