Posted on 06-16-2015 12:56 PM
Backstory:
We use DFS and recently the share engineers decided to change the location/path of the DFS shares. That means all Mac users who have ever logged in before the change date have an SMBHome of specificserver1uNumberusername (OLD). They've now changed it to general.server.edusharenameuNumberusername (NEW).
What I need:
To change all the OLD to NEW.
What I'd like:
I want to just flush the SMBHome setting and have it re-populate when a user logs in with their new credentials! But I cannot seem to find a way to do that. I can delete the record naturally, but that doesn't ever update or repopulate it on the Mac. I can nuke the profile and have people log back in the re-cache their user info, but that's a nuclear option to a conventional issue.
What I have:
I can develop a script to do it, but this is each user record on a device.. sometimes multiple users on one device, and multiple devices for a user. The 1:1 (Mac:User) ratio only accounts for maybe 1/3 of our user population. I will do this if I have to and I guess throw it into Self Service or have it run once as a policy per user.. but...
So, does anyone have any suggestions on flushing the SMBHome setting and have it magically re-populate (either via login or reach-out-to-ad-and-ask)?
Thanks, as always for your knowledge.
Posted on 06-16-2015 01:01 PM
I posted something something
about updating the password expiration stuff a few weeks ago, you will need to do essentially the same thing, but check the SMBHome variable instead of the last password change date.
I know that is vague, but I think scripting it is your answer. I have reported bugs to apple about the cached account information not updating and they have not replied to any of them thus far so I would not count on them fixing anything anytime soon.
Posted on 06-16-2015 01:52 PM
Wow, that looks uber-promising, @nessts!! I'll dig into it right now. Thank you!
My knowledge of perl is less than zero.. or perhaps zero because I know perl exists. :-)