Setting Username and Passwords for a scheduled task in MS Task Scheduler 
Author Message
 Setting Username and Passwords for a scheduled task in MS Task Scheduler

We have created a task in task scheduler, however when we copy it to another
machine, it assumes the user name for that machine. The user ID and Password
that the task was using gets dumped. I believe this means that the registry
is saving these settings, however we have been looking long and hard and
can't find it. I also tried looking in dozens of libraries dll's, ocx,
active X etc and have come up with squat.

I was wondering anyone has  ever done anything like setting the user name a
password to a scheduled task programatically? If so, can you share with me
how, or at least where to look it up. We need it in VB script, WSH.

Thanks in Advance

Gordon Cashmore



Wed, 01 Sep 2004 03:15:32 GMT  
 Setting Username and Passwords for a scheduled task in MS Task Scheduler
Hi,

http://www.google.com/search?hl=en&ie=ISO-8859-1&oe=ISO-8859-1&q=msta...
redentials

Protected storage used in the Registry can be very thick. It is using
Public Key Crypto via the CryptoAPI. Wait till you start playing with
Certificate Server.

As hard as you have worked to monitor what mstask is doing, you might be able to
use available objects more easily, but not without some pain.

hth,
Mark Pryor


Quote:
> We have created a task in task scheduler, however when we copy it to another
> machine, it assumes the user name for that machine. The user ID and Password
> that the task was using gets dumped. I believe this means that the registry
> is saving these settings, however we have been looking long and hard and
> can't find it. I also tried looking in dozens of libraries dll's, ocx,
> active X etc and have come up with squat.

> I was wondering anyone has  ever done anything like setting the user name a
> password to a scheduled task programatically? If so, can you share with me
> how, or at least where to look it up. We need it in VB script, WSH.

> Thanks in Advance

> Gordon Cashmore



Wed, 01 Sep 2004 04:05:11 GMT  
 Setting Username and Passwords for a scheduled task in MS Task Scheduler
Sheesh, I could have at least trimmed the link:
http://www.google.com/search?q=mstask+script+credentials


Quote:
> Hi,

http://www.google.com/search?hl=en&ie=ISO-8859-1&oe=ISO-8859-1&q=msta...
Quote:
> redentials

> Protected storage used in the Registry can be very thick. It is using
> Public Key Crypto via the CryptoAPI. Wait till you start playing with
> Certificate Server.

> As hard as you have worked to monitor what mstask is doing, you might be able
to
> use available objects more easily, but not without some pain.

> hth,
> Mark Pryor



> > We have created a task in task scheduler, however when we copy it to another
> > machine, it assumes the user name for that machine. The user ID and Password
> > that the task was using gets dumped. I believe this means that the registry
> > is saving these settings, however we have been looking long and hard and
> > can't find it. I also tried looking in dozens of libraries dll's, ocx,
> > active X etc and have come up with squat.



Wed, 01 Sep 2004 04:07:57 GMT  
 Setting Username and Passwords for a scheduled task in MS Task Scheduler

Quote:

> We have created a task in task scheduler, however when we copy it to another
> machine, it assumes the user name for that machine. The user ID and Password
> that the task was using gets dumped. I believe this means that the registry
> is saving these settings, however we have been looking long and hard and
> can't find it. I also tried looking in dozens of libraries dll's, ocx,
> active X etc and have come up with squat.

> I was wondering anyone has  ever done anything like setting the user name a
> password to a scheduled task programatically? If so, can you share with me
> how, or at least where to look it up. We need it in VB script, WSH.

Hi

Some links:

Task Scheduler Using VBScript
http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/pr...

Check the "Script Mstask" item in the TOC at WSH Scripting [Mark Pryor]
http://home.sprintmail.com/~mpryor/

Programming the Task Scheduler (By Dina Berry):
http://www.15seconds.com/Issue/980513.htm

--
torgeir



Wed, 01 Sep 2004 06:09:45 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Setting Username and Passwords for a scheduled task in MS Task Scheduler

2. wsh scheduled task versus sql scheduled tasks -performance issue

3. W2k Task-Scheduler -> find hanging tasks

4. Submit a task to the Task Scheduler

5. Script to change scheduled task password

6. Task Scheduler Using VBScript - can't set date/time

7. Problems instantiating IE object with WSH via Task Scheduler

8. Task Scheduler

9. Task Scheduler???

10. file transfer via task scheduler

11. Automating the Task Scheduler in Win2K

 

 
Powered by phpBB® Forum Software