diff --git a/tasks/BakRestBackupOnLogoff.xml b/tasks/BakRestBackupOnLogoff.xml index 976a4cc..37711d0 100644 --- a/tasks/BakRestBackupOnLogoff.xml +++ b/tasks/BakRestBackupOnLogoff.xml @@ -7,7 +7,7 @@ true - <QueryList><Query Id="0" Path="Security"><Select Path="Security">*[System[(EventID=4647)]]</Select></Query></QueryList> + <QueryList><Query Id="0" Path="System"><Select Path="System">*[System[Provider[@Name='Microsoft-Windows-Winlogon'] and EventID=7002]]</Select></Query></QueryList>