/build/static/layout/Breadcrumb_cap_w.png

AutoIT compiled EXE file not running properly at logoff/logon screen

I compiled a script (exe) in AutoIT to login as our domain admin account. It's super simple, and works in Windows - but for some reason when I set it as a script and do a RUN NOW, it doesn't do anything while at the login screen. I have it set to allow to run while logged off....but is there some sort of security reason why it wouldn't run? Any ideas on what I need to do to get it to run? I think this would be useful for logging in as admin on a whole school/lab when doing projects this Summer.

 #cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.8.1
 Author:         myName

 Script Function:
	Template AutoIt script.

#ce ----------------------------------------------------------------------------

Send("pctech")
Send("{TAB}")
Send("XXX")

0 Comments   [ + ] Show comments

Answers (3)

Posted by: GeekSoldier 11 years ago
Red Belt
1

You're trying to perform this a script with the K1000? I know that if you're trying to run a script before logon, it won't actually run until after you press Ctrl+Alt+Del . What exactly is your script trying to accomplish? With the K1000 you can drop pretty much anything into a batch file within the scripting module without even having to upload one.


Comments:
  • My goal was to login to a bunch of machines with the correct tech credentials. It's a simple EXE that should run and type in user name "pctech", simulate tab key, then type the password....and it doesn't work (I need to add "ENTER" key emulation after that of course, but it doesn't even type the text).

    This should work just like any other script I would imagine. If I have notepad open in Windows and run the script, it works - types out what I want. But if I just run it while it's sitting at the username and password login screen, it doesn't do anything. - sfigg 11 years ago
  • Are you trying to do this with KACE? - GeekSoldier 11 years ago
  • Yes. I have a compiled EXE that runs the above script. I uploaded the exe to the K1 and have the parameters set like every other script I've done in the past. It just doesn't want to run at the login from what I can tell. Maybe it's an AutoIT issue....but it's so simple I can't see why it wouldn't work. - sfigg 11 years ago
  • Look at this. http://www.symantec.com/connect/forums/need-script-log-user-win-7-computer I'm not sure it's going to be possible or not. It might have something to do with how the OS perceives that kind of script. - GeekSoldier 11 years ago
Posted by: andrew_lubchansky 11 years ago
2nd Degree Black Belt
0

Have you thought about pushing out an automatic login within Group Policy?  I think this can be achieved through GP in the registry.

Posted by: dugullett 11 years ago
Red Belt
0

Just curious... would you really want an entire school logged in as a domain admin? Seems a little bit like a security risk.

Couldn't you just create whatever tasks you are needing in the K1000, and run them with domain admin credentials?


Comments:
  • For the Summer or weekends when deploying certain software. I have some thing scripted in AutoIT which require the machine to be logged into Windows since it can't run some scripted programs while logged off. - sfigg 11 years ago
  • I have to agree to dugullett.
    I've never worked with Kace products and I genuinly hate AutoIT, but there has to be another solution available.
    I would deffo not use a domain admin account to perform simple tasks like update/patch/install/configure things.
    Worst case scenario, I'd use an "Adidas-account" which is only local admins on each machine and not domain admin.

    What are the tasks you are trying to accomplish? Explain, and people might help you come up with a better solution. - andemats 11 years ago
  • Check out Goverlan by PJ Technology. I think for the functionality and price point you'll like what you see. http://www.goverlan.com/#Goverlan-Remote-Administration-Solution it's been solid in our environment when KACE hasn't been. I recommend it because once your agents are distributed it runs at the system level. I hope this helps. I'd give it a 30 day eval to see if it meets your needs. - GeekSoldier 11 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ