Hey, such a simple task but i literally cannot get it to work!
Im trying to create a scheduled task that runs on an event, the event being an event ID 4 from windwows Server Backup, can anyone take a look at my code below to see what im doing wrong??!?? The first section is the code from the exported task XML but i understand it has to be escaped so below that is my attempt at making it work with Advanced Installer. If anybody can help it would be greatly appriciated.
XML From Task
<QueryList>
<Query Id="0" Path="Microsoft-Windows-Backup">
<Select Path="Microsoft-Windows-Backup">*[System[Provider[@Name='Microsoft-Windows-Backup'] and EventID=4]]</Select>
</Query>
</QueryList>
Escaped XML not working
<QueryList>
<Query Id="0" Path="Microsoft-Windows-Backup">
<Select Path="Microsoft-Windows-Backup">*[\[]System[\[]Provider[\[]@Name='Microsoft-Windows-Backup'[\]][\]][\]] and EventID="4"[\]][\]]</Select>
</Query>
</QueryList>