If you want to know the size of each
database without connecting to the database server or manually checking
each size. You can easily get the size of each database using the following PowerShell one-liner:
Get-SPDatabase | Sort-Object disksizerequired -desc | %{write-host “Size: $($_.disksizerequired/1gb)GB – Database: $($_.Name)”}
Get-SPDatabase | Sort-Object disksizerequired -desc | %{write-host “Size: $($_.disksizerequired/1gb)GB – Database: $($_.Name)”}
No comments:
Post a Comment