Auto Login with macOS 10.14+ and DEP

KyleEricson
Valued Contributor II

I have tried the solution at the bottom of this post and it doesn't seem to work.

auto-login-local-user

Has anyone gotten this to work with DEP and the script method in this post?

Read My Blog: https://www.ericsontech.com
5 REPLIES 5

allanp81
Valued Contributor

@kericson I created a pkg that creates a kcpassword file for the user and has a post install script that runs:

defaults write /Library/Preferences/com.apple.loginwindow.plist autoLoginUser -string username

I then created a new policy that delivers this package when enrolment is complete via dep and set the policy to restart at the end.

Seems to work fine for me.

KyleEricson
Valued Contributor II

@allanp81 Can you share how you created this? Does this work with DEP?

Read My Blog: https://www.ericsontech.com

allanp81
Valued Contributor

@kericson I just used Jamf Composer and created a new package and described above and yes it works with DEP.

KyleEricson
Valued Contributor II

@allanp81 I was able to get this to work only after I do a restart. I have two local admin accounts that DEP creates. 1. Is the jamf management account which is not hidden 2. This auto login account.
Do you only have one local account?

Read My Blog: https://www.ericsontech.com

allanp81
Valued Contributor

I have a hidden management account and then an account that gets created during enrolment. Yes it requires a restart once applying the plist change.