Solved

Run vbscript from another vbscript as different user

Posted on 2006-07-19
2
2,350 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
[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 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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 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…
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…
Suggested Courses
Course of the Month3 days, 14 hours left to enroll

630 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