Skip to main content
Question

Login / Out Script Help!


Forum|alt.badge.img+14
  • Valued Contributor
  • 375 replies

Hello!

We have to use OS X server to manage some of our computers and we have been trying to get login scripts to work with them. It says its needs changes in
/private/var/root/Library/Preferences/com.apple.loginwindow.plist
we have found this to be cumbersome to do and we are wondering if anyone has a configuration profile or script that can change these settings or simply a better way of running login scripts. We have tried .command on these computers but, it opens terminal and we have that restricted.

Thanks for any help,
Jared

2 replies

Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • November 1, 2016

Make sure in your jss server that "Create login/logout hooks" is enabled under Computer Management > Check-in > login/logout hooks. Also make sure that in your config profile that under "Login Window" you have the "Also execute the client computer's LoginHook Script" is enabled under the "script" tab.

I had issues with this as well but both of those options have to be enabled in order to initial the login scripts.

Landon


Forum|alt.badge.img+8
  • Valued Contributor
  • 126 replies
  • November 2, 2016

@jared_f What are you trying to accomplish here? If its just a login script, and I presume you are not using Casper (JAMF PRO) then look into using LaunchAgents and LaunchDaemons, these can essentially run login and logout scripts which are locally stored on the computer. Take a look at Launch Control

http://www.soma-zone.com/LaunchControl/

You will need to package up the script and the launch agent and push this out to your computers maybe using Apple Remote Desktop, but it should work.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings