Posts
Showing posts from December 15, 2018
Accessing results of event viewer value query in task scheduler action
- Get link
- X
- Other Apps
up vote
0
down vote
favorite
I'm trying to implement a scheduled task in Windows 10. The task is triggered by multiple events, I want to pass the event ID that triggered the task to the action. So I have the following value query: <ValueQueries> <Value name="eventID">Event/System/EventID</Value> </ValueQueries> And the arguments in the ExecAction: <Arguments>--event $(eventID)</Arguments> But when the task is triggered, I get an error code: 2147942409 Translating that to Hex is 0x80070009. Windows error? "Storage control block address is invalid" ? I don't understand what it's trying to tell me? The task executes fine without the $(eventID) on the command line (just doesn't do anything useful).
...
HyT0JI1i89TAqGXYmmFQgZ wcjZo9RXlSsLVDOk39USa