Jump to content

Recommended Posts

Posted

I am creating a script to install a program while logged in as a user. I know this is a question asked

before but I seem to have a unique problem.

Some background:

We have 2 domains at my office, one NT4 domain and one XP active directory domain. I have Win2k

laptops connected to the NT4 domain and XP laptops connected to the Active Directory domain. The

local account on both Win2k and XP laptops can have 2 different admin passwords.

Problem:

I am using the runas command in order to try and find the correct Admin password on the pc however

it only seems to work on XP. We also have a policy in place that prohibits cmd.exe to be run on the laptops.

Does the runas command require cmd.exe and or is there another method I can do this?

Any help would be very much appreciated.

Posted
Posted

I didnt add cmd.exe to the runas command. However, I am unsure how it runs in the background. Can I use ShellExecute to launch an installation as another user?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...