-
Notifications
You must be signed in to change notification settings - Fork 2
3. Customisations
By default, all rules are enabled and with default category and classification. Sometimes customising this information is required.
As example, we can point out a daily health check, were not all rules are required to be enabled. This is just one example where some rules can be disabled.
To perform this change, copy the default rule file (ConfigMgrRulesOverride.xml) to an alternative location and customise it. Once the customisation is done, use the RulesOverrideFilePath parameter to point to the file.
The following snippet informs the tool that the rule is disabled and will not be used:
<Rule ID="1" Name="Server Down" Category="1" Classification="ERROR" Enabled="False" />
The following snippet informs the tool that the rule is enabled but the classification should be changed to WARNING:
<Rule ID="1" Name="Server Down" Category="1" Classification="WARNING" Enabled="True" />
By default, the tool performs checks against a pre-defined list of values created based on best practices.
To perform this change, copy the default values file (ConfigMgrDefaultValues.xml) to an alternative location and customise it. Once the customisation is done, use the DefaultValuesOverrideFilePath parameter to point to the file.
The following snippet informs the tool that the default value the variable MinimumSQLVersion is now 11.1.0.0 instead of the 12.0.6024.0:
<DefaultValue Name="MinimumSQLVersion" Type="string" value="11.1.0.0" />
Reporting is the most important part of the solution and the report can be customised.
Changing the following keys in the ConfigMgrDefaultReportValues for both Word and Excel reports
- SummaryFormat: Text of the summary.
- SummaryNote: an informational note that is added after the breakdown section
- ReportHeader: an informational note that is added at the beginning of the report section
- SortReport: Sort order for the report
- ExportDateFormat: Date/Time format
- CategoryError: Colour of the text when Error
- CategoryWarning: Colour of the text when Warning
- CriticalityHigh: Criticality "High" colour
- CriticalityMedium: Criticality "Medium" colour
- CriticalityLow: Criticality "Low" colour
- AddRuleID: Add the Rule ID to the report. True/false values ($true/$false)
- ExportComments: Add possible fixes to the report (if found on the Recommendations.xml). True/false values ($true/$false)
Possible values of "variables" used in the SummaryFormat, SummaryNote and ReportHeader text
- @@OEMNAME@@ -> OEMName
- @@MODULETITLE@@ -> Module Description
- @@MODULENAME@@ -> Module
- @@CUSTOMERNAME@@ -> Customer Name
- @@DATETIME@@ -> Current Date/Time
- @@TOTALISSUE@@ -> Total of issues
- [NL] -> new Line
- Change the ReportTemplate.docx file
- Change the following keys in the ConfigMgrDefaultReportValues
- Word_HeaderColour: Colour of the header
- Word_Column1Size: Left Column Size (caption/description)
- Word_Column2Size: Right Column Size (values)
- Change the ReportTemplate.xlsx file
- Change the following keys in the ConfigMgrDefaultReportValues
- Excel_HeaderBackgroundColour: Background colour of the header
- Excel_HeaderFontColour: Font colour of the header text
- Excel_TitleCell: Excell Cell to add the Title of the report
- Excel_LicensedToCell: Excel Cell to add the Licnese Information
- Excel_DateTimeCell: Excel Cell to add the date/time the report was generated
- Excel_OEMCell: Excel cell to add the OEM Name