Public/Graph/Get-KriticalUtcmMgBetaDeviceManagementDeviceEnrollmentConfigurationAssignment.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Get-MgBetaDeviceManagementDeviceEnrollmentConfigurationAssignment (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: 21 #> function Get-KriticalUtcmMgBetaDeviceManagementDeviceEnrollmentConfigurationAssignment { [CmdletBinding()] param( [String] $DeviceEnrollmentConfigurationId, [String] $EnrollmentConfigurationAssignmentId, [Object] $InputObject, [String[]] $ExpandProperty, [String[]] $Property, [String] $Filter, [String] $Search, [Int32] $Skip, [String[]] $Sort, [Int32] $Top, [String] $ResponseHeadersVariable, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials, [Int32] $PageSize, [SwitchParameter] $All, [String] $CountVariable ) if (-not (Get-Command -Name 'Get-MgBetaDeviceManagementDeviceEnrollmentConfigurationAssignment' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Get-MgBetaDeviceManagementDeviceEnrollmentConfigurationAssignment not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Get-MgBetaDeviceManagementDeviceEnrollmentConfigurationAssignment' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Get-KriticalUtcmMgBetaDeviceManagementDeviceEnrollmentConfigurationAssignment] ' + 'Get-MgBetaDeviceManagementDeviceEnrollmentConfigurationAssignment' + ' failed: ' + $_.Exception.Message) throw } } |