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