Solved

How to access remote machine using different acess?

Posted on 2009-04-07
3
230 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
[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
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

695 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