Hello, I am trying to use an XML file to import app control rules within Local Security Policy. I got the script from this link --> https://call4cloud.nl/2020/06/managing-apps-in-the-microsoft-store/
being the script below, and when I try to import it, it gives me this error "The specified applocker policy cannot be imported. Verify that the policy file is valid and import the policy again. Use the error message below to troubleshoot. Error: The XML Policy is invalid for the following reason: RuleCollection element is not declared"
Im new to XML and know im forgetting and missing something. Any help is appreciated
<RuleCollection Type="Appx" EnforcementMode="Enabled"> <FilePublisherRule Id="617edd5b-3360-4281-9724-21e453587fce" Name="Alle ondertekende toepassingspakketten" Description="Hiermee kunnen leden van de groep Iedereen ondertekende toepassingspakketten uitvoeren." UserOrGroupSid="S-1-1-0" Action="Allow"> <Conditions> <FilePublisherCondition PublisherName="CN=MICROSOFT CORPORATION, O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" ProductName="" BinaryName=""> <BinaryVersionRange LowSection="0.0.0.0" HighSection="" /> </FilePublisherCondition> </Conditions> </FilePublisherRule> <FilePublisherRule Id="617edd5b-3360-4281-9724-21e443587fce" Name="Whitelist Microsoft Windows app" Description="" UserOrGroupSid="S-1-1-0" Action="Allow"> <Conditions> <FilePublisherCondition PublisherName="CN=MICROSOFT Windows, O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" ProductName="" BinaryName=""> <BinaryVersionRange LowSection="0.0.0.0" HighSection="" /> </FilePublisherCondition> </Conditions> </FilePublisherRule> </RuleCollection>
<RuleCollection Type="Appx" EnforcementMode="Enabled"> <FilePublisherRule Id="617edd5b-3360-4281-9724-21e453587fce" Name="Alle ondertekende toepassingspakketten" Description="Hiermee kunnen leden van de groep Iedereen ondertekende toepassingspakketten uitvoeren." UserOrGroupSid="S-1-1-0" Action="Allow"> <Conditions> <FilePublisherCondition PublisherName="CN=MICROSOFT CORPORATION, O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" ProductName="*" BinaryName="*"> <BinaryVersionRange LowSection="0.0.0.0" HighSection="*" /> </FilePublisherCondition> </Conditions> </FilePublisherRule> <FilePublisherRule Id="617edd5b-3360-4281-9724-21e443587fce" Name="Whitelist Microsoft Windows app" Description="" UserOrGroupSid="S-1-1-0" Action="Allow"> <Conditions> <FilePublisherCondition PublisherName="CN=MICROSOFT Windows, O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US" ProductName="*" BinaryName="*"> <BinaryVersionRange LowSection="0.0.0.0" HighSection="*" /> </FilePublisherCondition> </Conditions> </FilePublisherRule> </RuleCollection>