Jump to content

Recommended Posts

Posted (edited)

ShellExecuteWait("C:\Temp\TAGInstall\autologon.exe", $username & $domain & $password)

This line is simply passing 3 pre-defined variables into the Microsoft Autologon.exe program.  The problem I'm getting is that the program errors out and says "Usage: autologon <username> <domain> <password>".  This leads me to believe that the command line arguments aren't being formatted correctly for some reason.

Can anyone look at the line above and see why autoit wouldn't be passing the variables cleanly?

Thanks!

*EDIT*

I've figured out the issue.  The following line works perfectly:

RunWait("C:\Temp\TAGInstall\autologon.exe" & " " & $username & " " & $domain & " " & $password)
Edited by PsychOfMSE

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
  • Recently Browsing   0 members

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