Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Logout script at login

Hi, can anybody help me with an logout script under 10.7.3 client


When I startup and login with an local standard user account I imediatley need to logoff and go back to the loginscreen.....we need this in case of using Filevault2 and AD Networkaccounts?


Kind regards


Dave

Mac OS X (10.7.3)

Posted on May 10, 2012 7:17 AM

Reply
6 replies

May 10, 2012 7:30 AM in response to Topher Kessler

Yes.....when i'am logged in to specific local useraccount in need to logoff immediately so i get the loginscreen with the login window as: Name and password' field so my AD users can login with their networkaccount.


I'am not into the apple scripting so need some help and think its no problem for the Apple specialist on this discussionform! 😉


Thanks in advance!


Dave

May 10, 2012 7:41 AM in response to d@v3

The terminal command to use would be the following:


osascript -e 'tell application \"System Events\" to log out'


The AppleScript line to use would be this:


tell application "System Events" to log out


These can be put into a login hook script (http://support.apple.com/kb/HT2420) or can be put into an AppleScript application (which can be created with the Automator utility), which then can be placed in the user's login items so it runs at login.


The problem here is overcoming Apple's warning about automatically resuming your workflow, which appears at every logout.

May 10, 2012 7:41 AM in response to softwater

Yes....our company wants to use Filevault2 but the pre-boot loginscreen form the Recovery Partition has only the possibilty to a list of users at the loginscreen....So next to the localadmin that's enabled for Filevault i want a second "standard" user with parantel controle and simple finder....when this user is loggin in I want the script to run the logoff action an then we have the normal login screen with name and password field so AD users can login.


Thanks in advance!


Dave

Logout script at login

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.