Solved

How to access remote machine using different acess?

Posted on 2009-04-07
3
222 Views
Last Modified: 2012-05-06
Hi experts,

I running a VB6 program that is doing some query and create a schedule task on remote machine. It works fine when I'm logged on my domain account which gives me administrator rights on all workstation. But if I try to run that program on a none domain account(user/computer), it doesn't work. I tried mapping a drive before but it gives only access to some queries but can't create the task.

Is it possible to specify a username for a connexion?

Thank you
0
Comment
Question by:EricPelletier
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
Comment Utility
0
 

Author Comment

by:EricPelletier
Comment Utility
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
0
 

Author Closing Comment

by:EricPelletier
Comment Utility
Not exactly what I was looking for
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 48
change vba from autofit to 13.5 width? 4 26
Paint/Redraw window while dragging 16 56
MsgBox 2 36
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

763 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

9 Experts available now in Live!

Get 1:1 Help Now