How to generate a local user profile for a new user account in Windows? -
I created a new local Windows account and want to modify some personal data for this newly created profile. But if this account was never logged in, then profile data is not prepared and therefore I can not modify it. I want to modify things like NTUSER.dat to optimize the current user registry and prepare things in the user's personal folders. I can not use default profile, because it is possible to create more than one local user account with different settings in my application. And these settings should not be used for the next new user account.
Is there a way to start this generation process for the User Profile folder?
If not, then there is a good way to automatically log on to this newly created user, unless the profile is created and then the logoff closes?
The solution should be able to work under Windows 2000, Windows XP, Windows Vista and Windows 7.
(I am using .NET 3.5 / C #, but I also open all kinds of answers)
A friend can help me and get the answer. It does not work under Windows 2000, but it works fine for Windows XP and Windows Vista, I'll test Windows 7 later, but I think this should work.
Comments
Post a Comment