windows:misc:task_schedule_trigger_on_event_and_get_data

Get event data from event triggered task

  • Create task
  • Export task into XML
  • Add the following: into Task/Triggers/EventTrigger
<ValueQueries>
  <Value name="User">Event/EventData/Data[@Name='TargetUserName']</Value>
  <Value name="Computer">Event/EventData/Data[@Name='TargetDomainName']</Value>
</ValueQueries>
  • Reimport the task
  • Use $(User) and $(Computer) as variable names
  • windows/misc/task_schedule_trigger_on_event_and_get_data.txt
  • Last modified: 2022/11/08 13:05
  • by 127.0.0.1