Public/Graph/Get-KriticalUtcmMgBetaPolicyDeviceRegistrationPolicy.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Get-MgBetaPolicyDeviceRegistrationPolicy (category: Graph, module: M365DSCGraphShim). .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: Graph Module: M365DSCGraphShim Params: 10 #> function Get-KriticalUtcmMgBetaPolicyDeviceRegistrationPolicy { [CmdletBinding()] param( [String[]] $ExpandProperty, [String[]] $Property, [String] $ResponseHeadersVariable, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials ) if (-not (Get-Command -Name 'Get-MgBetaPolicyDeviceRegistrationPolicy' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Get-MgBetaPolicyDeviceRegistrationPolicy not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Get-MgBetaPolicyDeviceRegistrationPolicy' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Get-KriticalUtcmMgBetaPolicyDeviceRegistrationPolicy] ' + 'Get-MgBetaPolicyDeviceRegistrationPolicy' + ' failed: ' + $_.Exception.Message) throw } } |