Public/Report/New-KritTcmDscMofResourceWikiPage.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper New-DscMofResourceWikiPage (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: New-DscMofResourceWikiPage Category: Report Module: M365DSCDocGenerator Params: 3 #> function New-KritTcmDscMofResourceWikiPage { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $OutputPath, [Parameter(Mandatory)] [String] $SourcePath, [SwitchParameter] $Force ) if (-not (Get-Command -Name 'New-DscMofResourceWikiPage' -ErrorAction SilentlyContinue)) { throw '[KritTcm] New-DscMofResourceWikiPage not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'New-DscMofResourceWikiPage' @PSBoundParameters } catch { Write-Error ('[KritTcm/New-KritTcmDscMofResourceWikiPage] ' + 'New-DscMofResourceWikiPage' + ' failed: ' + $_.Exception.Message) throw } } |