Login Lab Computers Remotely via ARD and Automator
We would like to combine Automator and Apple remote Desktop to create a workflow that automatically logs in a lab full of Intel iMacs and MacMinis with a single local user account that is the same for all the computers. I have added two steps in Automator to make this workflow. The first is Choose Computer list (from ARD) and the second is Execute AppleScript. I have tried pasting the following code into the script window but it doesn't work:
osascript <<EndOfMyScript
tell application "System Events"
keystroke "username"
keystroke return
delay 3.0
keystroke "pswrd"
delay 3.0
keystroke tab
keystroke return
keystroke return
end tell
EndOfMyScript
Running this action in Automator gives me a "No Console User" error message in ARD. I've read a few places that I need to run it as the root user but I'm not sure where I would tell Automator to execute the Apple Script as a different user.
We would love to be able automate the login process. I honestly don't understand why ARD wouldn't just have a "login as" command built-in with the log off current user command. It seems like a no-brainer.
Any help would be greatly appreciated.
osascript <<EndOfMyScript
tell application "System Events"
keystroke "username"
keystroke return
delay 3.0
keystroke "pswrd"
delay 3.0
keystroke tab
keystroke return
keystroke return
end tell
EndOfMyScript
Running this action in Automator gives me a "No Console User" error message in ARD. I've read a few places that I need to run it as the root user but I'm not sure where I would tell Automator to execute the Apple Script as a different user.
We would love to be able automate the login process. I honestly don't understand why ARD wouldn't just have a "login as" command built-in with the log off current user command. It seems like a no-brainer.
Any help would be greatly appreciated.
MacBook Pro 2Ghz, Mac OS X (10.5.8)