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

Another user (Charlie) is requesting to have alerts sent anytime a change is made on the "discussion board", "Batch Report" folder, "Reports" folder, and "Audits" folder within a single client site. There are 50 client sites with each of these folders.

My question is, instead of manually setting up alerts on 50 sites x 4 folders = 200 alerts, is there so sort of PowerShell script that can be run to potentially automate this task?

share|improve this question… – BlueBird Mar 25 '13 at 19:09
@BlueBird, please re-post your response as an answer. also when you re-post please include the answer in full along with the link. Links have a tendency to disappear with time and this keeps the answers relevant. – Jesus Shelby Mar 25 '13 at 19:46
Thanks BlueBird! – sharepointaaron Mar 26 '13 at 13:45

Here is a basic outline of creating an alert using powershell. Combine this with some powershell that iterates through the sites / lists you are hoping to target and you have yourself a good start.

$SPsite = Get-SPSite ""
$SPlist=$SPweb.lists["Shared documents"] 
$SPuser = $SPweb.EnsureUser('Domain\Salaudeen') 
$SPnewAlert = $SPuser.Alerts.Add() 
$SPnewAlert.Title = "My Custom Alert"
$SPnewAlert.List = $SPlist
$SPnewAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::Email 
$SPnewAlert.EventType = [Microsoft.SharePoint.SPEventType]::Add 
$SPnewAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::Immediate 

Read more:

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.