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