Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Date Exclusion script

Created: 01 Feb 2012
Dan Giberson's picture
+1 1 Vote
Login to vote

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>

}