Public/Report/Get-KriticalUtcmDscResourceSchemaPropertyContent.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Get-DscResourceSchemaPropertyContent (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-KriticalUtcmDscResourceSchemaPropertyContent { [CmdletBinding()] param( [Parameter(Mandatory)] [Hashtable[]] $Property, [SwitchParameter] $UseMarkdown ) if (-not (Get-Command -Name 'Get-DscResourceSchemaPropertyContent' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Get-DscResourceSchemaPropertyContent not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Get-DscResourceSchemaPropertyContent' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Get-KriticalUtcmDscResourceSchemaPropertyContent] ' + 'Get-DscResourceSchemaPropertyContent' + ' failed: ' + $_.Exception.Message) throw } } |