Curated Examples
Generate Active Directory documentation
Use PSWinDocumentation to generate Word and HTML documentation output.
This pattern is useful when the older PSWinDocumentation workflow is already part of an environment.
It is adapted from Examples/Run-Oneliner-ActiveDirectory.ps1.
Example
Import-Module PSWinDocumentation
$outputBase = Join-Path $PSScriptRoot 'Output\ADDocumentation'
New-Item -ItemType Directory -Path (Split-Path $outputBase) -Force | Out-Null
Invoke-Documentation -Service ActiveDirectory -Output Word, HTML -FilePath $outputBase
What this demonstrates
- using the high-level documentation command
- generating both Word and HTML output
- keeping generated files under a script-local output folder