SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anyone help me to write PowerShell scripts that do the following:

  1. Report and alert on site and subsite size
  2. Report and alert on individual file size
  3. Collect search statistics
share|improve this question
hi muneyi and welcome to SharePoint overflow. We are glad to have you and will try our best to assist you in solving your problems. The key word here being assist. We will try to point you in the right direction, but dont expect us to do all your work for you :-) – Anders Rask Jun 14 '10 at 6:51

I take it you got a good reason for doing this in PowerShell -realize that you will only get a warning/report each time you run this script unless you in the script generate event log entries or similar for other monitoring devices.

Also consider using the OOB functionality for Quota and Quota warnings where you get notifications when site collections are getting near quotas.

If you use SharePoint 2010 consider using the Health Monitoring features. Besides the OOB rules and health checks you can define your own rules. You can get output as logs or reports.

Check out the Monitoring section of SharePoint 2010 on TechNet for an overview on what you can monitor.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.