Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can use the ContentDatabase parameter of Get-SPSite

Get-SPSite -ContentDatabase <guid or database name>
share|improve this answer
    
@Thanks. Worked in first try –  David Mike Jul 8 '11 at 17:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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