Here’s a script that may be used using Apple Remote Desktop to log in to multiple Macs. This is helpful if you need to log in on a Mac-based laboratory using a single user account.

Apple Remote Desktop

Apple Remote Desktop

osascript<<EndOfMyScript
tell application “System Events”
keystroke “<username>”
keystroke tab
delay 0.5
keystroke “<password>”
delay 0.5
keystroke return
end tell
EndOfMyScript

Make sure you run the Unix script as  root.

run_as_root

Advertisements