Export from the NTUSER.DAT using C#

I'm looking for a way to export/import the following registry keys and values using C#
Is there a sample code to do that?
is it possible to export from that while it is locked by the OS?

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Pratima PharandeConnect With a Mentor Commented:
see if this helps you


I don'yt think is it possible to export from that while it is locked by the OS
OrenRozenAuthor Commented:
Thanks pratima_mcs:
The link you gave me allow to load and unload the hive file to the registry.
Is there a way to read information from the hive file without loading it?

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

OrenRozenAuthor Commented:
This is the same link provided by @chandrasekar1 in his comment
This link is only pointing to the usage of the Registry and RegistryKey classes. No mention on NTUSER.DAT.
Pratima PharandeCommented:
I don't think there is any other way
you need to load the hive and access it

All Courses

From novice to tech pro — start learning today.