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