Help with registry permissions

  • Thread starter Thread starter russ
  • Start date Start date
R

russ

I'm a very noobie to VB.NET, just went through the Microsoft Intro
class.

I'm trying to write a simple app that connects to a remote PC and makes
a modification to hklm\software\microsoft\windows
nt\currentversion\winlogon

However, it always gets a "System.UnauthorizedAccessException" "Cannot
write to the registry key" error.

I've tried using RegistryPermissionAttribute and I must be doing
something wrong. Can anyone help?

Thanks
 
Well i'm not a COMPLETE noobie, I've been developing in Winbatch for a
couple years. Registry editing in it is very easy. My script is very
similar to the one in that example you pasted. I can edit the registry
fine in Winbatch but in VB.NET I get that access exception error. How
do I do these "trusts"?
 
Back
Top