Jump to content

Local Admin Account Question


Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...