Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question