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 running normally] #228

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
53 changes: 53 additions & 0 deletions Communityhub/ConfigurationItem/Antimalware running normally.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?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_f9b03f10-fa13-4928-ac30-a88a4232f16a" Version="2">
<Annotation xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules">
<DisplayName Text="Antimalware running normally" ResourceId="ID-969a827d-3b2b-4742-87ab-7aa10a64f8e6" />
<Description Text="" />
</Annotation>
<Parts>
<SuppressionReferences />
</Parts>
<Settings>
<RootComplexSetting>
<SimpleSetting LogicalName="ScriptSetting_9eec7cae-9033-4ca2-83c5-4631bd043f6a" DataType="String">
<Annotation xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules">
<DisplayName Text="Antimalware running normally" ResourceId="ID-86d26cb7-3f7b-48d6-b9e7-da9787973156" />
<Description Text="" />
</Annotation>
<ScriptDiscoverySource Is64Bit="true">
<DiscoveryScriptBody ScriptType="PowerShell">$AMRunningMode=(get-mpcomputerstatus).AMRunningMode
if ($AMRunningMode -eq $null) {
$AMRunningMode='Normal'
}
write-output $AMRunningMode</DiscoveryScriptBody>
</ScriptDiscoverySource>
</SimpleSetting>
</RootComplexSetting>
</Settings>
<Rules>
<Rule xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules" id="Rule_20fb2ec8-cb1d-4eef-9414-d2e8b97d009a" Severity="Warning" NonCompliantWhenSettingIsNotFound="true">
<Annotation>
<DisplayName Text="AMRunningMode=Normal" ResourceId="ID-e058c6c1-a395-46ed-9bbe-2cb7c41f3ffc" />
<Description Text="" />
</Annotation>
<Expression>
<Operator>Equals</Operator>
<Operands>
<SettingReference AuthoringScopeId="ScopeId_0149710E-F364-4741-AF5F-AEC0FC36E6A7" LogicalName="OperatingSystem_f9b03f10-fa13-4928-ac30-a88a4232f16a" Version="2" DataType="String" SettingLogicalName="ScriptSetting_9eec7cae-9033-4ca2-83c5-4631bd043f6a" SettingSourceType="Script" Method="Value" Changeable="false" />
<ConstantValue Value="Normal" DataType="String" />
</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>