Skip to content

Commands for SharePoint Content Databases

February 7, 2019

Use below commands to get Content Databases size and Data base size for each Site Collection:

Content Databases in Farm

Get-SPDatabase : Sort-Object disksizerequired-desc: Format-Table Name, @(Label = “Size in MB”; eXPRESSION = ($_.disksizerequired/1024/1024))

Database size for each site collection

Get-SPSite -Limit All -ContentDatabase <DatabaseName> :select url, @(label=”Size”;Expression=($


Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: