Public/Report/Get-KritTcmDscResourceWikiExampleContent.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Get-DscResourceWikiExampleContent (category: Report, module: M365DSCDocGenerator). .DESCRIPTION Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1. Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Krit.TCM provides the friendly namespace + citation registration for HARD RULE 20 discipline. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Wave .1514. Underlying cmdlet: Get-DscResourceWikiExampleContent Category: Report Module: M365DSCDocGenerator Params: 2 #> function Get-KritTcmDscResourceWikiExampleContent { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $ExamplePath, [Parameter(Mandatory)] [Int32] $ExampleNumber ) if (-not (Get-Command -Name 'Get-DscResourceWikiExampleContent' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Get-DscResourceWikiExampleContent not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Get-DscResourceWikiExampleContent' @PSBoundParameters } catch { Write-Error ('[KritTcm/Get-KritTcmDscResourceWikiExampleContent] ' + 'Get-DscResourceWikiExampleContent' + ' failed: ' + $_.Exception.Message) throw } } |