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

Comments

Please log in to comment

Community Chosen Answer

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.

Answered 04/08/2013 by: GeekSoldier
Red Belt

  • 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.
  • Are you trying to do this with KACE?
  • 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.
  • 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.
Please log in to comment

Answers

0

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

Answered 04/09/2013 by: andrew_lubchansky
Black Belt

Please log in to comment
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?

Answered 04/08/2013 by: dugullett
Red Belt

  • 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.
  • 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.
  • 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.
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share