platform: Windows XP Professional

I'm using Win32_ScheduleJob to create a scheduled task. If I run it from an
account with Administrator privileges, it works fine. If I run it from a
user account it fails, returning value 2. How can I make it word from a
non-Admin account? (What are the possible return values, and where are they
documented?)

Thanks.

Gary

Re: Can't create Scheduled Task from non-Admin account by Dave

Dave
Fri Mar 17 21:36:04 CST 2006

You'll probably find more functionality with Schtasks

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/schtasks.mspx?mfr=true

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Gary Stebbins" wrote:
| platform: Windows XP Professional
|
| I'm using Win32_ScheduleJob to create a scheduled task. If I run it from
an
| account with Administrator privileges, it works fine. If I run it from a
| user account it fails, returning value 2. How can I make it word from a
| non-Admin account? (What are the possible return values, and where are
they
| documented?)
|
| Thanks.
|
| Gary
|
|



Re: Can't create Scheduled Task from non-Admin account by Gary

Gary
Sat Mar 18 11:45:47 CST 2006

Schtasks doesn't appear to be scriptable. Any other solutions?

"Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message
news:uMTQX0jSGHA.5036@TK2MSFTNGP12.phx.gbl...
> You'll probably find more functionality with Schtasks
>
> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/schtasks.mspx?mfr=true
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Gary Stebbins" wrote:
> | platform: Windows XP Professional
> |
> | I'm using Win32_ScheduleJob to create a scheduled task. If I run it from
> an
> | account with Administrator privileges, it works fine. If I run it from a
> | user account it fails, returning value 2. How can I make it word from a
> | non-Admin account? (What are the possible return values, and where are
> they
> | documented?)
> |
> | Thanks.
> |
> | Gary
> |
> |
>
>



Re: Can't create Scheduled Task from non-Admin account by Dave

Dave
Sat Mar 18 11:45:24 CST 2006

Of course it is. Take a look at the link for the command line syntax.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Gary" wrote:
| Schtasks doesn't appear to be scriptable. Any other solutions?



Re: Can't create Scheduled Task from non-Admin account by Gary

Gary
Mon Mar 20 15:07:00 CST 2006

I've read all the documentation on Schtasks. It is a command-line utility. I
can find nothing in it about being scriptable (other than potentially
running it as a command line task through scripting, and attempting to parse
its output). If it's scriptable, can you point me to the scripting object
model?

Thanks.

Gary

"Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message
news:OEGX9OrSGHA.1632@TK2MSFTNGP10.phx.gbl...
> Of course it is. Take a look at the link for the command line syntax.
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Gary" wrote:
> | Schtasks doesn't appear to be scriptable. Any other solutions?
>
>



Re: Can't create Scheduled Task from non-Admin account by Dave

Dave
Mon Mar 20 18:38:53 CST 2006

Yes scriptable as in command line scripting. Much more robust than
Win32_ScheduleJob

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Gary Stebbins" wrote:
| I've read all the documentation on Schtasks. It is a command-line utility.
I
| can find nothing in it about being scriptable (other than potentially
| running it as a command line task through scripting, and attempting to
parse
| its output). If it's scriptable, can you point me to the scripting object
| model?
|
| Thanks.
|
| Gary