Public/Report/Get-KriticalUtcmDscResourceWikiExampleContent.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Get-DscResourceWikiExampleContent (category: Report, module: M365DSCDocGenerator). .DESCRIPTION Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Kritical.UTCM provides the friendly namespace + citation registration. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Category: Report Module: M365DSCDocGenerator Params: 2 #> function Get-KriticalUtcmDscResourceWikiExampleContent { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $ExamplePath, [Parameter(Mandatory)] [Int32] $ExampleNumber ) if (-not (Get-Command -Name 'Get-DscResourceWikiExampleContent' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Get-DscResourceWikiExampleContent not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Get-DscResourceWikiExampleContent' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Get-KriticalUtcmDscResourceWikiExampleContent] ' + 'Get-DscResourceWikiExampleContent' + ' failed: ' + $_.Exception.Message) throw } } |