Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software-Restriction-Policies.xml incorrect syntax #52

Open
appelboom opened this issue Nov 23, 2020 · 2 comments
Open

Software-Restriction-Policies.xml incorrect syntax #52

appelboom opened this issue Nov 23, 2020 · 2 comments

Comments

@appelboom
Copy link

XPATH should be
*[System[(EventID=865 or EventID=866 or EventID=867 or EventID=868 or EventID=882)]]

Not
*[Application[Provider[@name='Microsoft-Windows-SoftwareRestrictionPolicies'] and (EventID=865 or EventID=866 or EventID=867 or EventID=868 or EventID=882)]]

@clong
Copy link
Contributor

clong commented Jan 23, 2021

@b1t-hunter
Copy link

I have checked this in the log manifest on a test system , all referenced events appear in the Application channel. Also as @appelboom has pointed out, the Subscription Query is incorrect. The first selector (*[Application[) in the XPath query string does not reference the channel, but the system header of the event XML. This header, including the provider specification, is always located in the System element. Therefore the query should be as follows:

*[System[Provider[@Name='Microsoft-Windows-SoftwareRestrictionPolicies'] and (EventID=865 or EventID=866 or EventID=867 or EventID=868 or EventID=882)]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants