I am trying to access a registry key on computer like so:
key = RegistryKey.Ope nRemoteBaseKey( RegistryHive.Lo calMachine,
computerName).O penSubKey(Subke y);
There are two keys I am trying to read, 1 works, and the other gives
me the "Requested registry access is not allowed."
i've narrowed it down to
HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Office
It doesnt let me access that path, but the permissions are the same.
I can access it alright on my own machine (passing my machine name
into OpenRemoteBaseK ey) but not anyone's remote machine.
It lets me access HKLM\Software\M icrosoft\Window s NT
but not
HKLM\Software\M icrosoft\Office
Although I get the same error "Requested registry access is not
allowed" if i enter an incorrect path, eg HKLM\Software\f djkhfjkh
Any ideas where i may be going wrong?