Background:
I have a policy in the JSS that runs a script with a series of Jamf Helper huds. These walk a user through the instructions for enabling FV2. However I cannot figure out how to force a logout of the current user. I had this all working really well through self service but our users are being very naughty and not running it from self service. We need to move to something more "forceful". However in our environment we, do a lot of hand holding, as in we have to get as close to 100% of the process being automated or we just make tickets for ourselves.
‘tell application “System Events” to log out’
compiled into an applescript app works in 10.9 but not 10.8, or 10.7 - we are mostly 10.8 with some 10.7 and very few 10.9 machines.
Reboot does not kick off the deferral asking the user to enter password.
killing the login window is too dirty it also does not ask for the password.
local bash scripts don't work.
su -u $(currentUser) type stuff is also not working.
It seems that when something is running from policy, as root, that there is no way for it to influence the console user to log out gracefully. Has anyone else tried something like this?
