VMware Cloud Community
YevB
Contributor
Contributor

Windows Scheduled Tasks

Greetings,

I encoutred some issue with the Windows scheduled tasks,
I'm trying to run each 15 minutes, script which suppose to Disconnect Idle Sessions,
The script suppose to run from the VC, with my Domain user.
As long as I logged into the VC everything works fine.
But if I logging off, the script isn't runs.

Is there someone fimiliar with this issue?
Any other suggestions?

Thanks in advance,
YevB.

0 Kudos
3 Replies
LucD
Leadership
Leadership

Did you give a "Run as" account when you defined the scheduled task ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
a_p_
Leadership
Leadership

You need to make sure the user running the scheduled task has the "Logon as Batch job" rights. Otherwise you may find a "Logon Type 4" error in the Windows event logs.

André

0 Kudos
jake_robinson_b
Hot Shot
Hot Shot

I can verify that Andre is correct. I encountered the same thing and had to allow my user "logon as batch job" rights in the policy. Not even my domain admin account had those rights.

Jake Robinson VCP, vExpert - geekafterfive.com - Twitter: @jakerobinson
0 Kudos