G
Guest
Some background:
I have an application written in java that uses the java Runtime class to
issue schtasks command to windows xp. I want to be able to create the task
without the user of my java application having to enter their windows profile
username and password. It appears that this is possible using the com api,
but I cannot figure out how to do it using schtasks commands.
The reason that I say it is possible through the com api (ie: calling the
windows gui) is because in Norton antivirus, I can setup a scheduled scan
without having to enter in my windows profile username and password. Once I
set up the task, if I go into windows task manager from control panel, and
look at the properties. On the Task tab I can see the Run as is set to my
windows profile username and the set pasword button is disabled and the Run
only if logged on check box is checked. If I uncheck this check, then the
windows gui makes me enter a password.
So, from looking at the documentation on how schtasks works in XP, I don't
see a way to set the Run only if logged on option in schtasks.
Does anyone know of a way to set that option using schtasks? I believe that
will give me the desired behavior
I have an application written in java that uses the java Runtime class to
issue schtasks command to windows xp. I want to be able to create the task
without the user of my java application having to enter their windows profile
username and password. It appears that this is possible using the com api,
but I cannot figure out how to do it using schtasks commands.
The reason that I say it is possible through the com api (ie: calling the
windows gui) is because in Norton antivirus, I can setup a scheduled scan
without having to enter in my windows profile username and password. Once I
set up the task, if I go into windows task manager from control panel, and
look at the properties. On the Task tab I can see the Run as is set to my
windows profile username and the set pasword button is disabled and the Run
only if logged on check box is checked. If I uncheck this check, then the
windows gui makes me enter a password.
So, from looking at the documentation on how schtasks works in XP, I don't
see a way to set the Run only if logged on option in schtasks.
Does anyone know of a way to set that option using schtasks? I believe that
will give me the desired behavior