Solved

Passing an account name and password to the Task scheduler from Access

Posted on 2004-10-11
3
203 Views
Last Modified: 2008-02-01
I am trying to set up my access program so the user can create a task from my program that shows up in the windows task scheduler.  I have been able to accomplish this using both the NetScheduleJobbAdd() function and the AT scheduler.   My problem is that I cant figure out how to pass account information (ie: account name, and password) with either.  The task I create from my program are not able to run because of this, but if I manually creat a task to run and put in account info, it runs fine.  Thank you in advance for your help, John
0
Comment
Question by:huston8481
3 Comments
 
LVL 20

Accepted Solution

by:
hes earned 500 total points
ID: 12290423
Only members of the Administrators local group can successfully execute the NetScheduleJobAdd function on a remote server.

Try the NetScheduleJobAddAsUser
http://www.wincron.com/trfnpcnsjaau.html
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12293225
see "Using the Task Scheduler from VB" from http://www.mvps.org/emorcillo/vb6/grl/index.shtml
0
 

Author Comment

by:huston8481
ID: 12309647
Im looking at both of these options right now, Ill let yall know how it goes.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question