Solved

Run vbscript from another vbscript as different user

Posted on 2006-07-19
2
2,321 Views
Last Modified: 2013-12-26
I want to run a visual basic script from another visual basic script, and as a different user

I need it for running some login scripts in all computers
I know how to do this launching a runas command, but it shows the screens in session startup

I'd like to know how to do it with commands like "LogonUser", "CreateProcessWithLogonW", "ImpersonateLoggedOnUser"...

I have had troubles for getting answers for this question, and I have posted it again in this topic area as suggested by Netminder

Thank you
0
Comment
Question by:danieldemiguel
2 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 500 total points
ID: 17218086
>>> I'd like to know how to do it with commands like "LogonUser", "CreateProcessWithLogonW", "ImpersonateLoggedOnUser"...

These are API's that cannot be called directly from vbscript.They would have to be wrapped in a COM Object that you would use in your script.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

708 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

15 Experts available now in Live!

Get 1:1 Help Now