Solved

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

Posted on 2004-10-11
3
201 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 69

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now