[tweetmeme source=”dracona1031″ only_single=false]
Recently a clients’ server crashed. Unfortunately it needed to be rebuilt entirely, which meant rebuilding Active Directory by rejoining clients to the domain. When you remove a client from a domain, Windows removes the locally stored domain user profile. In order to rejoin the domain without losing user files and settings, you need to backup the profile before leaving the domain. The files can be copied back after rejoining the domain, but there may be lingering permissions issues. Here’s how to rejoin a domain while avoiding these issues.
- Create a local profile and copy the domain profile to the new profile. Make sure all hidden files are showing when you copy the files, otherwise you may miss certain settings. For added backup, you can rename the domain user profile folder – I like to append the current date to provide a history. For example, C:\documents and settings\user becomes C:\documents and settings\user.20100702. In Vista or Windows 7 this would be C:\users\user.20100702.
- Disjoin the domain and restart.
- Rejoin the domain, restart, and log in to the domain user profile. Using “run as” to create the profile doesn’t cut it, you’ll need to log in to fully initialize the profile.
- Log in as the local administrator. Right click on My Computer, open Properties, and go to the Advanced tab. Open Settings in the User Profile section.
- Select the local profile you copied the old domain profile into, and select “Copy To… .” Select the new domain profile folder to overwrite, and select Permission to Use. Set the domain profile or organizational unit the account should use.
- Copy and log into the new domain user profile to make sure the files and settings are intact.