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. AT Schedules In Task Scheduler

6. Add a task to task scheduler

7. How to add a task into Windows Task Scheduler from VB

8. Adding tasks to WIN95/98 Task Scheduler

9. Creating Tasks in Task scheduler

10. How to create TASK SCHEDULER tasks

11. Adding tasks to WIN95/98 Task Scheduler

 

 
Powered by phpBB® Forum Software