Solved

How to access remote machine using different acess?

Posted on 2009-04-07
3
223 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
ID: 24095578
0
 

Author Comment

by:EricPelletier
ID: 24103375
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
ID: 31567712
Not exactly what I was looking for
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending a email via excel using vba 6 71
Adding to a VBA? 6 61
Copy a row 12 57
How to make an ADE file by code? 11 79
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

912 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

24 Experts available now in Live!

Get 1:1 Help Now