Discussion Locked

running a program from a Script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to have a user run a program with admin right to that program. How do I write a script that will run as admin in windows 2000 Oro

5 replies

by peter ritchie

The user needs to be logged in as an admin to be able to run a program as admin--especially in scripts.

You'd have to write something in C/C++ (or possibly VB) to impersonate another user (from the admin group) knowing their username and password.

by andrew

Check out the 'runas' utility.
This lets you run a process as a specific user.

You may need to wrap this with a small program so that you don't inappropriately expose the administraor account password.

This discussion is closed to new replies.