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