Log into a user’s Desktop via ARD

osascript -e ‘tell application “System Events” to key code 53’;
osascript -e ‘tell application “System Events” to delay 10’;
osascript -e ‘tell application “System Events” to keystroke “other”‘;
osascript -e ‘tell application “System Events” to delay 10’;
osascript -e ‘tell application “System Events” to keystroke return’;
osascript -e ‘tell application “System Events” to delay 10’;
osascript -e ‘tell application “System Events” to keystroke “USERNAME_GOES_HERE”‘;
osascript -e ‘tell application “System Events” to delay 10’;
osascript -e ‘tell application “System Events” to keystroke tab’;
osascript -e ‘tell application “System Events” to delay 10’;
osascript -e ‘tell application “System Events” to keystroke “PASSWORD_GOES_HERE”‘;
osascript -e ‘tell application “System Events” to delay 10’;
osascript -e ‘tell application “System Events” to keystroke return’;

 

Posted in: Apple Remote Desktop, Imaging, MacOS