This is a very great code but it doesn't do what I'm looking for.
To clarify the situation.
I'm running the VB6 applcation on a computer in montreal. This computer is not on the domain or is on another domain. That application is used t create a schedule task on a computer in vancouver. So I enter the vancouver computer name in the VBapp and the task parameter a of strat date and time, command line and the domain user accont and password to use to execute the task etc...
If I run the program on a computer in montreal on the same domain and with a user account that has admin right, it work great. The task is created on the vancouver pc and execute correctly. But if I run the program on a none domain computer or using a none admin account, it doesn't work.
What I would like to do is use the user account and password that I can specify in the VB app to autenticate and create the task on the remote machine.
I hope it is more clear now..
Thank you
Main Topics
Browse All Topics





by: EDDYKTPosted on 2009-04-08 at 03:48:22ID: 24095578
try this, use runasuser
e.com/Prog ramming/La nguages/ Q_ 23600844.h tml
http://www.experts-exchang