During Migration activity - it become very import to know the size of Content Database - which we are going to migrate.
To know the Content Database size is very easy - Just use below power shell command:-
Power Shell Command:-
Get-SPDatabase | ForEach-Object {$db=0} {$db +=$_.disksizerequired; $_.name + ” – ” + $_.disksizerequired/1024/1024} {Write-Host “`nTotal Storage (in MB) =” (“{0:n0}” -f ($db/1024/1024))}
The above command give the list of all database with size in MB.
Happy Coding !!
To know the Content Database size is very easy - Just use below power shell command:-
Power Shell Command:-
Get-SPDatabase | ForEach-Object {$db=0} {$db +=$_.disksizerequired; $_.name + ” – ” + $_.disksizerequired/1024/1024} {Write-Host “`nTotal Storage (in MB) =” (“{0:n0}” -f ($db/1024/1024))}
The above command give the list of all database with size in MB.
Happy Coding !!
No comments:
Post a Comment