Jump to content

Recommended Posts

Posted

I've been playing around with Task Scheduler to notify me by email when certain errors occur on our HyperV host (specifically at the moment, replication errors). This is all set up and works fine.

 

However, I get a notification based on every time a particular error is recorded to the event log, meaning once there's a problem I get emails for every VM, about every thirty seconds. Great - I know there's a problem but I'm getting drowned under the email traffic...

 

Is there any way to get a scheduled task to "pause" for a period of time after it's been triggered? I've looked through the settings but can't find anything. Ideally, the task would do something like this:

 

Trigger - send email

Trigger

Trigger

Trigger

Trigger

(etc)

One hour later...

Trigger - send email

 

Once an hour is fine, once every ten seconds is crazy. Any suggestions?

Posted

Put 2 tasks for the action, one being a BAT file that sleeps for X time.

 

Turn the setting on in the advanced pane not to start a new instance if one is already running.

 

Just means the task will take X minutes/time to stop and won't trigger again during it

 

Steve

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...