jeudi 30 avril 2015

Read content of Registry.pol

I'm trying to read content of the following file C:\Windows\System32\GroupPolicy\User\Registry.pol in C# application.

Here is the snippet of code:

string content = File.ReadAllText(@"C:\Windows\System32\GroupPolicy\User\Registry.pol");

Despite this folder, this file exists and I run program from Administrator I always get exception of the following type System.IO.DirectoryNotFoundException.

Could you please suggest solution to read the content? Thanks

Aucun commentaire:

Enregistrer un commentaire