Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Pull request with type [CREATE] for user [PanuSaukko] and object type [ConfigurationItem] - titled [Antimalware enabled] #226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions Communityhub/ConfigurationItem/Antimalware enabled.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-16"?>
<DesiredConfigurationDigest xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/07/10/DesiredConfiguration">
<!--Authored against the following schema version: 5-->
<OperatingSystem AuthoringScopeId="ScopeId_0149710E-F364-4741-AF5F-AEC0FC36E6A7" LogicalName="OperatingSystem_09b3adbd-1f9b-499b-a197-4c70fc589078" Version="2">
<Annotation xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules">
<DisplayName Text="Antimalware enabled" ResourceId="ID-849a3524-536d-4b75-9752-1899f70d907f" />
<Description Text="" />
</Annotation>
<Parts>
<SuppressionReferences />
</Parts>
<Settings>
<RootComplexSetting>
<SimpleSetting LogicalName="ScriptSetting_b806ee3d-9063-43df-931d-26e917e44b15" DataType="Boolean">
<Annotation xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules">
<DisplayName Text="Antimalware enabled" ResourceId="ID-37c934fb-7c78-487e-b54d-a5834b4a01df" />
<Description Text="" />
</Annotation>
<ScriptDiscoverySource Is64Bit="true">
<DiscoveryScriptBody ScriptType="PowerShell">$AMServiceEnabled=(get-mpcomputerstatus).AMServiceEnabled
write-output $AMServiceEnabled</DiscoveryScriptBody>
</ScriptDiscoverySource>
</SimpleSetting>
</RootComplexSetting>
</Settings>
<Rules>
<Rule xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules" id="Rule_ec9b41bf-d2b2-47e7-9e34-b27fc2b6bd7c" Severity="Warning" NonCompliantWhenSettingIsNotFound="true">
<Annotation>
<DisplayName Text="AMServiceEnabled = true" ResourceId="ID-10c3f818-70cd-4e8d-8796-a4ea24c17e69" />
<Description Text="" />
</Annotation>
<Expression>
<Operator>Equals</Operator>
<Operands>
<SettingReference AuthoringScopeId="ScopeId_0149710E-F364-4741-AF5F-AEC0FC36E6A7" LogicalName="OperatingSystem_09b3adbd-1f9b-499b-a197-4c70fc589078" Version="2" DataType="Boolean" SettingLogicalName="ScriptSetting_b806ee3d-9063-43df-931d-26e917e44b15" SettingSourceType="Script" Method="Value" Changeable="false" />
<ConstantValue Value="True" DataType="Boolean" />
</Operands>
</Expression>
</Rule>
</Rules>
<OperatingSystemDiscoveryRule xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules">
<OperatingSystemExpression>
<Operator>OneOf</Operator>
<Operands>
<RuleExpression RuleId="Windows/All_Windows_Client_Server" />
</Operands>
</OperatingSystemExpression>
</OperatingSystemDiscoveryRule>
</OperatingSystem>
</DesiredConfigurationDigest>