-
Notifications
You must be signed in to change notification settings - Fork 3
4. Examples
Run the tool against sitecode 001 and use files ConfigMgrrulesoverride.xml and ConfigMgrdefaultvalues.xml located on the same folder as the script and will save all the data into the default location 'C:\Temp\ConfigMgrHealthCheck'
.\CollectData.ps1 -AuthorizedSiteCodes '001' -RulesOverrideFilePath .\ConfigMgrRulesOverride.xml -DefaultValuesOverrideFilePath .\ConfigMgrDefaultValues.xml
Run the tool against sitecode 001 and use files ConfigMgrrulesoverride.xml and ConfigMgrdefaultvalues.xml located on the same folder as the script and will save all the data into the location 'C:\Temp\ConfigMgrHealthCheckNewLocation' and will create a Zip File with all collected files into the user's desktop
.\CollectData.ps1 -AuthorizedSiteCodes '001' -RulesOverrideFilePath .\ConfigMgrRulesOverride.xml -DefaultValuesOverrideFilePath .\ConfigMgrDefaultValues.xml -CreateZipFiles -SaveToFolder 'C:\Temp\ConfigMgrHealthCheckNewLocation'
Run the tool against files located into default location and use files Categories, Issues.xml, Recommendations.xml ConfigMgrrulesoverride.xml and ConfigMgrdefaultvalues.xml located on the same folder as the script and will save all the healthcheck.xml file into default location 'C:\Temp\ConfigMgrHealthCheck'
.\AnalyseData.ps1 -CategoriesFilePath .\Categories.xml -IssuesFilePath .\Issues.xml -RecommendationsFilePath .\Recommendations.xml -RulesOverrideFilePath .\ConfigMgrRulesOverride.xml -DefaultValuesOverrideFilePath .\ConfigMgrDefaultValues.xml
Run the tool against files located into 'C:\Temp\ConfigMgrHealthCheckNewLocation' and use files Categories, Issues.xml, Recommendations.xml ConfigMgrrulesoverride.xml and ConfigMgrdefaultvalues.xml located on the same folder as the script and will save all the healthcheck.xml file into default location 'C:\Temp\ConfigMgrHealthCheckNewLocation'
.\AnalyseData.ps1 -CategoriesFilePath .\Categories.xml -IssuesFilePath .\Issues.xml -RecommendationsFilePath .\Recommendations.xml -RulesOverrideFilePath .\ConfigMgrRulesOverride.xml -DefaultValuesOverrideFilePath .\ConfigMgrDefaultValues.xml -SaveToFolder 'C:\Temp\ConfigMgrHealthCheckNewLocation'
Generate a report in Word Format and save it to c:\temp\report.docx using C:\temp\ReportTemplate.docx as template File. Will override the report file if it already exist and use file ConfigMgrDefaultReportValues.xml located on the same folder as the script. Will generate the report based on the healthcheck files exported to C:\temp\healthcheck\Capture
.\GenerateReport.ps1 -Format Word -ReportFile 'c:\temp\report.docx' -ForceOverrideReport -DefaultValuesOverrideFilePath .\ConfigMgrDefaultReportValues.xml -HealthCheckFolder 'C:\temp\healthcheck\Capture' -ReportTemplateFileName 'C:\temp\ReportTemplate.docx' -ReportAuthor 'Raphael Perez' -CompanyName 'RFL Systems Ltd' -CompanyURL 'https://www.rflsystems.co.uk' -CustomerName 'Customer Name'