Using Event Viewer Remotely?

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

I'm trying to write an Event Viewer log entry from one
computer to another across the LAN, and I get the
following error:

System.UnauthorizedAccessException: Access to the
registry key is denied.
at Microsoft.Win32.RegistryKey.Win32Error

I realize its some sort of security-related issue,
but I can't seem to figure it out. Can somebody
help? Is it trying to log in using the account
credentials of the process i'm calling WriteEntry()
from?

Thanks,
Tom
..
 
Is it trying to log in using the account credentials
of the process i'm calling WriteEntry() from?
Yes, as I understand your description of what your code does.
Of course, outside of a domain where there is a shared account
this will fail.
 

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

Back
Top