Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-10-11
3
Medium Priority
?
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 20

Accepted Solution

by:
hes earned 2000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

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.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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…

604 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