benched42 Posted March 22, 2005 Share Posted March 22, 2005 I apologize if this has been covered before. I've been writing AutoIt scripts for about four years now and have automated a lot of our program installations. My dilemma is this: We are about to update our VPN client software and a majority of our users do not have administrative permissions on their laptops and this is needed for uninstallation of our old software and installation of the new. I am quite familiar with how to do this; my problem is that there are two possible local administrator passwords. I can't seem to determine how to write a script that will "test" to see which one is the right password without locking out the local administrator account. Any thoughts? Thanks in advance. Who lied and told you life would EVER be fair? Link to comment Share on other sites More sharing options...
CyberSlug Posted March 22, 2005 Share Posted March 22, 2005 Here's what I do in similar cases: RunAsSet("user", "DOMAIN", "p@ssw0rd") $pid = Run("notepad", "", @SW_HIDE) If @error Then MsgBox(4096,"Invalid credentials", "Please check domain\username password..." & @LF & "Password cannot be null") Else ProcessClose($pid) EndIf Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
benched42 Posted March 22, 2005 Author Share Posted March 22, 2005 Thanks, Cyberslug! Who lied and told you life would EVER be fair? Link to comment Share on other sites More sharing options...
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