Installation manual
Chapter 8 Administering Client Computers 149
Logging In a User at the Login Window
Apple Remote Desktop can log in any user on a client computer by using AppleScript
System Events and the Send UNIX Command feature. Using these powerful features
you can log in any number of client computers to the same user name simultaneously
from the login window.
This script is for use on computers at the login screen only.
To log in a user:
This method uses the osascript command. For information about osascript, see the
osascript man page.
1 Select a computer list in the Remote Desktop window.
2 Select one or more computers in the selected computer list.
3 Choose Manage > Send UNIX Command.
4 Type the following AppleScript script in the UNIX Command window, adding the user
name and password:
osascript <<EndOfMyScript
tell application "System Events"
keystroke "<user name##gt##"
keystroke tab
delay 0.5
keystroke "<password##gt##"
delay 0.5
keystroke return
end tell
EndOfMyScript
5 Choose user “root” to run the command.
6 Click Send.
The client computer executes the script.
Logging Out the Current User
Apple Remote Desktop can log out the current user on a client computer. Other users
who are logged in using Fast User Switching aren’t logged out by this command.
Using this command returns the client computer to the login window.
Unsaved work will stop the logout process.
To log out a user:
1 Select a computer list in the Remote Desktop window.
2 Select one or more computers in the selected computer list.