Skip to content

Instantly share code, notes, and snippets.

@espennilsen
Created January 14, 2013 20:40
Show Gist options
  • Select an option

  • Save espennilsen/4533201 to your computer and use it in GitHub Desktop.

Select an option

Save espennilsen/4533201 to your computer and use it in GitHub Desktop.
Takes all your snapmirror relationships and sets them up to run once an hour at a random minute.
Foreach ($sm in Get-NaSnapMirror) {
Set-NaSnapmirrorschedule -Destination $sm.destination -Source $sm.source `
-Minutes (Get-Random -minimum 0 -maximum 59) -hours * -daysofmonth * -daysofweek *
}
@espennilsen
Copy link
Author

Used in my blog post http://espennilsen.net/?p=25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment