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.
 
Back
Top