c# - Reading event log from remote machine without passing credentials -


i reading event log of remote machine using following code.

eventlog elog = new eventlog(logname, servername); 

i tried access log of other machine in network without having access machine. surprised can read eventlog without having credential remote pc.

please let me know whether default logic or not. want ensure can access log of machine accessible on lan (may on different domain).

that works because machines on domain , creds used machine running code work on machines. if try access machine on domain fail. you'll either have provide creds, or simple work around run program user in domain.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -