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