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