DemonAngel Posted November 17, 2008 Posted November 17, 2008 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.
dbzfanatic Posted November 17, 2008 Posted November 17, 2008 I think runas uses cmd.exe /c so that could be the problem. Try using ShellExecute(), it may not work but it's worth a shot. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
DemonAngel Posted November 17, 2008 Author Posted November 17, 2008 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?
DemonAngel Posted November 18, 2008 Author Posted November 18, 2008 Anyone able to offer more advice? When I get to the office i`ll post the code that I am using.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now