Curated Examples
Create an HTML report
Use Testimo to create a scoped Active Directory health report.
This pattern is useful when a health-check result should be shared as an HTML report.
It is adapted from Example/Example-TestActiveDirectoryWithReport.ps1.
When to use this pattern
- You want a report artifact for review.
- The source list is intentionally limited.
- You need to exclude a lab or known-out-of-scope domain.
Example
Import-Module Testimo
$sources = @(
'ForestRoles'
'ForestOptionalFeatures'
'ForestReplicationStatus'
'DomainPasswordComplexity'
'DomainGroupPolicyMissingPermissions'
)
Invoke-Testimo `
-Sources $sources `
-ExcludeDomains 'lab.example.com' `
-FilePath "$PSScriptRoot\Reports\Testimo.html" `
-AlwaysShowSteps
What this demonstrates
- generating an HTML report
- scoping the source list
- excluding domains that should not be part of the run