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