Event log Windows

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
orla090978
Posts:55
Joined: Thu Jan 03, 2019 2:05 pm

Event log Windows

Post by orla090978 »

Good Morning,

VIa WinCC OA is there any possility to write a directly event log of WinCC OA (LOGIN/LOGOUT) to Windows event log?
For example between a script dedicated.

Best regards

dbindernagel
Posts:161
Joined: Mon Feb 23, 2015 1:34 pm

Re: Event log Windows

Post by dbindernagel »

I have never tried this myself but maybe it helps:

On Windows you can use the "eventcreate" command to add entries to the eventlog.
(Just enter "eventcreate /?" into a command line for the syntax.)

You could call this command in WinCC OA with the CONTROL function "system()".
(See WinCC OA help file for more info about the "system ()"function.)

orla090978
Posts:55
Joined: Thu Jan 03, 2019 2:05 pm

Re: Event log Windows

Post by orla090978 »

Thank you so much! it works!

3 posts • Page 1 of 1