Help with registry permissions

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
 
R

Russ

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"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top