3
I am creating an installation script that should create a few users, and set some registry settings for them. In order to use reg.exe to modify their registry, I need to have the location of their ntuser.dat, normally residing in the users' home directories.
The home directories are only created during the users' first login, which is a little late for my batch file. I don't wish to have to log into each user.
Is there a way to create the home directories without logging into the users? I assume it would involve copying the "\Users\Default" directory, but what else needs to be done?
This question is similar to mine, but does not refer to the registry.
Thanks! Modifying the default profile could work for our scenario. I am unsure if the .DEFAULT Key actually would work. The link you provide does not use it, but loads the Default Hive manually. We are not in a Domain, so we can't use Group Policies. I'd rather leave the default profile unchanged, so I'll wait a little longer for other answers. =) – Jens – 2014-10-08T10:47:40.233