When attempting to read the System event log on a remote system, I receive a
"Requested registry access is not allowed" exception. I temporary added
myself as an administrator to the remote system and the code worked fine.
What permissions need to be assigned to my account on the remote system? If I
use the NT 4.0 resource kit utility "elogdmp.exe" i am able to dump event log
entries with my account.
Here is a segment of the code:
ev = new EventLog("System", DeviceName);
int LastLogToShow = ev.Entries.Count;
int totalCount = 0;
int i;
for ( i = ev.Entries.Count - 1; i>= 0 ; i--)
{
EventLogEntry CurrentEntry = ev.Entries[i];
if (CurrentEntry.TimeWritten >= calculatedDate )
{