Is it possible to run a “Power Off Computers” task that is re-run whenever it is relevant again? I’ve attached a screen shot of the take action window showing roughly how I’d like the action to apply.
Basically, I’d like to say that after a certain time of the day, lets say 5:10pm, if a device is still on, prompt the user and shut it down. Then, repeat the action each time it’s relevant until 12:00am. Rinse and repeat every day.
The problem I have is that after the action runs the first time, it never runs again. The task is relevant for the device when it starts up, but to get it to shutdown again, a new action has to be created. I’ve tried creating the action without any time constraints, basically run whenever it’s relevant but I still get the same result.
Can anyone maybe explain why this is experienced? Have I missed some vital logic?
I think I know the answer. Does your task run correctly the first time but just never run any other time, even though it’s setup as a policy action?
I think what you have to do is make it toggle the applicability. You need to make it so that all of your relevance expressions are true the first time (in order to run the power off), false after it’s immediately run (probably with some client setting or reg key with a current time parameter), then true some time afterwards (after some amount of time has passed based off that regkey we just set).
I think policy actions without that toggle will only run once.
Yes, the task runs correctly the first time and never again, even though it’s set up as a policy.
Being relatively new to IEM, and I’m not familiar with the concept of toggling applicability and the impact it has on policy-based tasks. I’ve not had to manipulate the applicability of a task before, and to a novice, just trying to read it isn’t all that intuitive. I thought that for a client to just start up again would be enough to trigger the applicability.
Are you able to provide a brief example of what I might need to do, or provide a link that may assist?
Please could someone help me as to the Power Management site.
Power Off the Script Computers he is successful, however after Reboot the machine it does not run again by disconnecting it again and showing the task as completed.
Could you hand me a script that performs the action of Power Off Computers at a certain interval, forcing the shutdown even allowing not use the same.
Set the reapply with a time delay. Instead of “whenever it becomes relevant again” choose the option “while relevant, waiting 15 minutes.” This will allow the action to toggle relevance as liuhoting suggested. This occurs because your shutdown action is considered successful when all the steps are completed (was originally a task) rather than when the relevance evaluates to false (behavior for fixlets). So it never “becomes relevant again” because it is always relevant. The delay will simulate the concept of becoming relevant again and allow it to reapply.