Archived from groups: microsoft.public.windowsxp.perform_maintain (More info?)
To schedule a task that runs every 70 days if I am logged on
The following command schedules a security script, Sec.vbs, to run every 70
days. The command uses the /mo parameter to specify an interval of 70 days.
It also uses the /it parameter to specify that the task runs only when the
user under whose account the task runs is logged onto the computer. Because
the task will run with the permissions of my user account, then the task
will run only when I am logged on.
. To identify tasks with the interactive-only (/it) property, use a
verbose query (/query /v). In a verbose query display of a task with /it,
the Logon Mode field has a value of Interactive only.
"Will Manley" <WillManley@discussions.microsoft.com> wrote in message
news:683A2FCB-388D-4513-8AD5-85A2E72CE87B@microsoft.com...
> How can I set through the command prompt the option "run only if logged
> on"
> using the schtasks facility?
>
> Hope somebody can help,
>
> Will
Archived from groups: microsoft.public.windowsxp.perform_maintain (More info?)
Hi Mark,
I have XP SP2 but the /it option is not available to me? I even copied your
command line exactly and it rejected the /it option. I think that option is
Windows 2003 only?
Any other ideas?
Will
"Mark Dormer" wrote:
> To schedule a task that runs every 70 days if I am logged on
> The following command schedules a security script, Sec.vbs, to run every 70
> days. The command uses the /mo parameter to specify an interval of 70 days.
> It also uses the /it parameter to specify that the task runs only when the
> user under whose account the task runs is logged onto the computer. Because
> the task will run with the permissions of my user account, then the task
> will run only when I am logged on.
>
> schtasks /create /tn "Security Script" /tr sec.vbs /sc daily /mo 70 /it
>
> Note
>
> . To identify tasks with the interactive-only (/it) property, use a
> verbose query (/query /v). In a verbose query display of a task with /it,
> the Logon Mode field has a value of Interactive only.
>
>
>
> Full listing off options is available here
> http://tinyurl.com/djsxe >
>
> --
> Regards
> Mark Dormer
> How to ask a newsgroup question:
> http://support.microsoft.com/kb/555375 >
>
> "Will Manley" <WillManley@discussions.microsoft.com> wrote in message
> news:683A2FCB-388D-4513-8AD5-85A2E72CE87B@microsoft.com...
> > How can I set through the command prompt the option "run only if logged
> > on"
> > using the schtasks facility?
> >
> > Hope somebody can help,
> >
> > Will
>
>
>
"Will Manley" <WillManley@discussions.microsoft.com> wrote in message
news:6F2D0BE7-C0E3-41A9-BB6C-7C92D6AE4BAD@microsoft.com...
> Hi Mark,
>
> I have XP SP2 but the /it option is not available to me? I even copied
> your
> command line exactly and it rejected the /it option. I think that option
> is
> Windows 2003 only?
>
> Any other ideas?
>
> Will
>
> "Mark Dormer" wrote:
>
>> To schedule a task that runs every 70 days if I am logged on
>> The following command schedules a security script, Sec.vbs, to run every
>> 70
>> days. The command uses the /mo parameter to specify an interval of 70
>> days.
>> It also uses the /it parameter to specify that the task runs only when
>> the
>> user under whose account the task runs is logged onto the computer.
>> Because
>> the task will run with the permissions of my user account, then the task
>> will run only when I am logged on.
>>
>> schtasks /create /tn "Security Script" /tr sec.vbs /sc daily /mo 70 /it
>>
>> Note
>>
>> . To identify tasks with the interactive-only (/it) property, use a
>> verbose query (/query /v). In a verbose query display of a task with /it,
>> the Logon Mode field has a value of Interactive only.
>>
>>
>>
>> Full listing off options is available here
>> http://tinyurl.com/djsxe >>
>>
>> --
>> Regards
>> Mark Dormer
>> How to ask a newsgroup question:
>> http://support.microsoft.com/kb/555375 >>
>>
>> "Will Manley" <WillManley@discussions.microsoft.com> wrote in message
>> news:683A2FCB-388D-4513-8AD5-85A2E72CE87B@microsoft.com...
>> > How can I set through the command prompt the option "run only if logged
>> > on"
>> > using the schtasks facility?
>> >
>> > Hope somebody can help,
>> >
>> > Will
>>
>>
>>
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.