<LogonType>Password</LogonType>
Easiest way is to create a test one using the GUI then right click on it and select export. It will generate an xml file for you.
Have you tried creating the task as the user versus as an administrator to run as the user?Yes. ERROR: Access is denied.
You may have an option set in the XML, that alters what you want.
are you saying that if the user is not logged in, the task runs?That is not the problem.
lets try this, what does the task supposed to do?The task is supposed to run every day at 6:05 AM. It runs a bat script. It is only supposed to run if the user (me) is logged in. That works just peachy.
You have the task to run 6am daily6:05 AM to be exact.
and you want it to run, only when a specific user is logged in.Correct.
If you are not logged in, does the task run anyway at 6:05?The question and answer are not relevant to the problem.
Does the batch script run in elevated mode?Yes.
Are you in an AD environment?Don't know what that is.
Windows environment with a Centrally Managed Active Directory?No
it should be
Open in new window