I
need to make a script to automate the following. Also is there a way to pull
the info for the user logging on and input this in the script? Thanks for the help!
1.
On your Mac OS X computer, log in as a local administrator. Open System
Preferences and click on the accounts preference pane.
2.
Click the lock in the lower left corner to authenticate as a local admin.
3.
Choose mobile account that you wish to migrate.
4.
Click the Remove (-) button in the lower-left corner.
5.
When prompted, leave the default selected, “Don’t change the home
folder,” then click OK.
6.
If the short name of the user differs from the short name of the Active Directory
user, change the name of the home folder. The following command changes the
name of the home folder from the local user short name “test
(Deleted)” to the Active Directory user name “test”:
IT$
sudo mv “/Users/test (Deleted)” /Users/test
7.
Change the ownership of the files in the preserved home folder so that the
Active Directory user is the new owner. Open Terminal and issue the chown
(change ownership) command, which takes the form of
IT$
sudo chown -R test:“new domain\domain users” /Users/test
8.
Log out as the local administrator account, and then log in as the Active
Directory account.