Today I am providing the Power Shell Script that is
useful to show or get the size of each and every site and site collection as
per user input and requirement.
Inputs
Other
inputs - Script will ask different input on the basis of user choice. Please
follow the instructions
Outputs
At
the end of the script user will get the size of all sites/Site collection/web
application/Farm.
Example-
To show result in power shell screen
.\scriptname.ps1
to get output in a
file
.\scriptname.ps1 | out-file “FilePath\Filename.txt”
Dependencies –
Run
this script with Farm Account. Farm account is the user who installed
SharePoint.
User
should be Site collection administrator in all the sites.
User should have Shell Admin rights to run the
scripts.
Run Management Shell as an Administrator.
How to execute -
Copy this script and paste in Note pad.
Save this file as .ps1.
Run this script in SharePoint Management Shell. You can run this script in PowerShell as well after adding SharePoint snapin (Add-pssnapin *.sharepoint.*).
Follow on screen instructions.
Run Management Shell as an Administrator.
How to execute -
Copy this script and paste in Note pad.
Save this file as .ps1.
Run this script in SharePoint Management Shell. You can run this script in PowerShell as well after adding SharePoint snapin (Add-pssnapin *.sharepoint.*).
Follow on screen instructions.
FOR ANY HELP ON THIS SCRIPT USE
"GET-HELP .\SCRIPTNAME.PS1 --FULL" AFTER SAVING THIS FILE.
https://drive.google.com/file/d/0BznVpoE_ln0AamFkQ0g2VlVYY00/view?usp=sharing