Question Michael Lundberg · Sep 9, 2024

Write to Windows Eventlog

Hello to you!


Is it possible to write to Windows Eventlog with Object Script?

Tried a bit but having trouble getting it to work. If possible, I would be grateful for a piece of sample code

Regards Michael

Product version: IRIS 2023.1
$ZV: IRIS for Windows (x86-64) 2023.1.3 (Build 517U)

Comments

Eduard Lebedyuk · Sep 9, 2024

$zf should work:

w$zf(-100,"/SHELL","eventcreate","/ID",1,"/L","APPLICATION","/T","INFORMATION","/SO","MYEVENTSOURCE","/D","My first log")
0
Michael Lundberg  Sep 10, 2024 to Eduard Lebedyuk

Thanks Eduard!

I was just looking at something similar. I will try it out

/Michael

0
Michael Lundberg · Sep 9, 2024

After further research, it does not seem possible to use object script to write directly to the Windows event log without using a bridge such as PowerShell or similar

0