This is the code i was using,
EventSourceCrea tionData sourceData = new EventSourceCrea tionData(this.e ventSource, this.monitorLog );
sourceData.Mach ineName = "NodeName";
EventLog.Create EventSource(sou rceData);
When I run this code it returns the error "Attempted to perform an unauthorized operation." ... I guess this error message is due to access restriction..
I do have the administrator credentials, how ever i do not know how to supply the credentials here.. could u please let me know how i can use the credentials and create event source remotely
EventSourceCrea tionData sourceData = new EventSourceCrea tionData(this.e ventSource, this.monitorLog );
sourceData.Mach ineName = "NodeName";
EventLog.Create EventSource(sou rceData);
When I run this code it returns the error "Attempted to perform an unauthorized operation." ... I guess this error message is due to access restriction..
I do have the administrator credentials, how ever i do not know how to supply the credentials here.. could u please let me know how i can use the credentials and create event source remotely