/mv_home

Move home directory on Windows

Primary LanguageC++MIT LicenseMIT

Move home directory on Windows

Moving the home directory is not a trivial task on Windows.

Even if we move the directory itself with another user the registry has our directory hardcoded in quite a few places.

I wrote a C++ utility, which replaces all entries pointing at the previous home directory to the new one.

This utility enhances the following answer on stackoverflow:

That answer in turn incorporates the following articles:

Also note, these articles forget to mention that a user's directory should be owned by the SYSTEM user, but all subfolders and files should be given "Total control" for the user whos directory it is. In case this is not the case even the start menu doesn't work.