我可以使用C#将事件日志写入远程计算机吗?
问题描述:
是否有可能将事件日志写入另一台机器?
Is it possible to write an event log to another machine?
答
嗯...是......如果你有一个共享文件夹如果你的电脑有连接,你可以用适当的权限写下你喜欢的任何内容。
但你的意思是我可以写一个Windows事件日志吗?远程机器?然后我怀疑这会给你带来更多的问题。
这可能会有所帮助 - 但是你会不得不做很多阅读,我想:http://www.windowsecurity.com/articles-tutorials/windows_os_security/Accessing-Security-Logs-Remotely- Efficiently.html [ ^ ]
Well...yes...in the sense that if you have a shared folder with appropriate permissions you can write anything you like into it, provided your PC has a connection.
But it you mean "can I write to the windows event log on a remote machine?" then I suspect that is going to give you a lot more problems.
This may help - but you are going to have to do a lot of reading, I think: http://www.windowsecurity.com/articles-tutorials/windows_os_security/Accessing-Security-Logs-Remotely-Efficiently.html[^]
http://lmgtfy.com/?q=write+event+log+remote+machine+c%23 [ ^ ]