I am creating a c# windows form application that goes read registry on remote computers.
RegistryKey regKey = RegistryKey
.OpenRemoteBaseKey(RegistryHive.CurrentUser, pc, RegistryView.Registry64)
.OpenSubKey("SOFTWARE\\ODBC\\ODBC.INI\\ODBC Data Sources");
When i run the application from USER1 it works because my remote computers are always logged in with USER1.
Now if i run it with USER2 my regKey is always equal to NULL, no matter what.
On my remote computers, in Component Services, i allowed the service : REMOTE REGISTRY.
Any ideas please ?