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=($_.usage.storage))

 

Advertisements
Leave a Comment

Leave a Reply

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

WordPress.com Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: