K
K
Konstantin Gorodetsky2016-08-02 10:49:24
Windows
Konstantin Gorodetsky, 2016-08-02 10:49:24

How to pass arguments to script from Windows EventLog?

Good afternoon!
In the Windows security log, I bind the task to the event - Starting the program.
I specify the script (Python). Everything works fine - when the event fires, the script is launched.
How to pass arguments from the Event to the script?
In the Add arguments field, I write Event tags, but they are passed to the script as text.
Tried:
TargetUserName
-TargetUserName
$TargetUserName
$(TargetUserName)
Everything is passed as text. Can you tell me in what format it can be sent?
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question