Date Exclusion script
Created: 01 Feb 2012
Looked around here earlier for help on creating a script to exclude a certain date for all policies and didn't really find anything recent. After a bit of playing this is what I was able to come up with for Windows, and it actually works. Just applied it across 185 policies. Run this in a Powershell window.
$list = bppllist
Foreach ($policy in $list){
bpplschedrep $policy Weekly -excl <date>
bpplschedrep $policy Weekly -excl <date>
}
Discussion Filed Under: