Hi..
We're using DEP in an AD environment.
When setting up Mac for first time, the user is prompted to create a local account via the setup assistant.
We have Casper run a policy that binds computer to AD and then restarts allowing user to login with their domain credentials.
What we'd like to do is have Casper run a script that once user is logged into Mac with AD account that will search for and delete the local account that was created using the setup assistant upon first boot.
Since people will no doubt create a local account with any name they want, I thought maybe we could run a DSCL command and find any local accounts with a Unique ID of "500-something" and then delete it.
I thought maybe I'd build off of @donmontalvo instructions here, but I'm not a scripting whiz.
https://jamfnation.jamfsoftware.com/discussion.html?id=5437
Whatchoo think? Maybe there's another way?