Policy Action To Run Daily

(imported topic written by jdefilip)

I’m trying to create an action that will execute a batch file daily. I created the action with the following:

The action has only executed once.

Messages

No user interface will be shown before running this action.

No message will be shown while running this action.

Users

This action will run independently of user presence.

User interface will be shown to all users.

Execution

This action will never expire.

It will run between 5:00:00 AM and 9:00:00 AM client local time, on any day of the week.

If the action becomes relevant after it has successfully executed, the action will be reapplied as a policy an unlimited number of times.

If the action fails, it will not be retried.

Post-Action

No operations will occur after the action completes.

(imported comment written by reneschmidt)

Could you please post your relevance you use for this action ?

(imported comment written by jdefilip)

(name

of

it

=

“Win2000”

OR

name

of

it

=

“WinXP”

OR

name

of

it

=

“WinXP-2003”

OR

(name

of

it

=

“Win2003”

AND

NOT

x64

of

it
)

OR

(name

of

it

=

“Win2003”

AND

x64

of

it
)

OR

(name

of

it

=

“WinVista”

AND

product type

of

it

=

nt workstation product type

AND

NOT

x64

of

it
)

OR

(name

of

it

=

“WinVista”

AND

product type

of

it

=

nt workstation product type

AND

x64

of

it
)

OR

((name

of

it

=

“Win2008”

or

(name

of

it

=

“WinVista”

and

product type

of

it

!=

nt workstation product type))

AND

NOT

x64

of

it
)

OR

((name

of

it

=

“Win2008”

or

(name

of

it

=

“WinVista”

and

product type

of

it

!=

nt workstation product type))

AND

x64

of

it
)

OR

(name

of

it

=

“Win7”

AND

NOT

x64

of

it
)

OR

(name

of

it

=

“Win7”

AND

x64

of

it
)

OR

name

of

it

=

“Win2008R2”

OR

name

of

it

=

“WinXPe”

OR

name

of

it

=

“Win8”

OR

(name

of

it

=

“Win8”

AND

x64

of

it
))

of

operating system

AND

TRUE

(imported comment written by Tim.Rice)

Did the initial action Fail? You have it configured to Not try again after failure.

(imported comment written by jdefilip)

The intiial action Completed.

(imported comment written by liuhoting)

So i think I know what is happening. I think your policy action will only run once because the overall relevance evaluation isn’t toggling between true/false. I think what you need to do is make the action relevant on the endpoint again (you can do this through clever client setting and checking for times > 24 hours in relevance). I think you’ll find that once it goes from false to true it will run again.