Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load .reg file into a hive file when the user is not logged on

Status
Not open for further replies.

ICTECH

Technical User
Joined
Jun 5, 2002
Messages
131
Location
CA
Hi All..

I've been given the task of coming up with a way to update existing user profiles on machiens when new software is pushed down from the Network (Novell). I've found code on how to load a hive, but nothing on how to load the .reg file. Is there any way to do this through VB.net code? I've worked out code for getting all the "Human" user profiles Out of the Registry. The Registry is the only part left. They also want to have the default user updated as well for when new users logon.
 
Odd. I've been working on parsing .reg files with pretty much the same goal in mind. What *I* cannot seem to figure out is how to load the external hive file into something usable. How did you manage to do this?

For the .reg I just opened it as a streamreader and parsed each entry. If it had "[" in it, I loaded that key (for each profile), and if it had "=" in it, I wrote that value. Just string manipulation, really.

The problem I had is that sometimes users seem to be magically absent from HKEY_USERS, so I wanted to load their NTUser.dat files one at a time and write to those.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top