Public/Utility/Convert-KriticalUtcmHashtableToString.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Convert-M365DscHashtableToString (category: Utility, module: M365DSCUtil). .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: Utility Module: M365DSCUtil Params: 1 #> function Convert-KriticalUtcmHashtableToString { [CmdletBinding()] param( [Hashtable] $Hashtable ) if (-not (Get-Command -Name 'Convert-M365DscHashtableToString' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Convert-M365DscHashtableToString not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Convert-M365DscHashtableToString' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Convert-KriticalUtcmHashtableToString] ' + 'Convert-M365DscHashtableToString' + ' failed: ' + $_.Exception.Message) throw } } |