Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 13696

Re: HTML Remote Control Mac cannot see Mac login screen

$
0
0

If you can't wait for this update, you could run a Custom Script that remotely logs into the Macs using some predetermined credentials.  Here's my stab at it:

 

[MACHINES_MAC]

; Adapted from these blogs:

;

; https://jamfnation.jamfsoftware.com/discussion.html?id=5560

; http://jacobsalmela.com/bash-script-enable-access-assistive-devices-programmatically-os-x-mavericks-10-9-x-simulate-keystrokes/

;

; Note you must first run this command against any Mavericks (10.9) Mac before it will allow CBA to control the GUI:

;

;    sudo /usr/bin/sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','/usr/LANDesk/common/cba',1,1,1,NULL)"

 

REMEXEC0=/usr/bin/touch /private/var/db/.AccessibilityAPIEnabled

REMEXEC1=/usr/bin/osascript -e 'tell application \"SecurityAgent\" to activate'

REMEXEC2=/usr/bin/osascript -e 'tell application \"System Events\"' -e 'tell process \"SecurityAgent\" to set value of text field 2 of window \"Login\" to \"Name\"' -e 'tell process \"SecurityAgent\" to set value of text field 1 of window \"Login\" to \"Password\"' -e 'keystroke return' -e 'end tell'

 

I have tested this on Mountain Lion (10.8) and Mavericks (10.9).  Note the caveat about Mavericks - you have to authorize CBA to be able to use the Accessibility features of the GUI and osascript.

 

Charles


Viewing all articles
Browse latest Browse all 13696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>