Danie's Knowledge Base
Search This Blog
Wednesday, 22 May 2013
List all Site Collections under a Database
Hi,
Here is a PowerShell Command to list all your Site Collections under a DB.
Run Powershall as Admin
Get-SPContentDatabase | %{Write-Output "- $($_.Name)”; foreach($site in $_.sites){write-Output $site.url}}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment