Public/Graph/Update-KriticalUtcmMgBetaDeviceManagementWindowsAutopilotDeploymentProfile.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Update-MgBetaDeviceManagementWindowsAutopilotDeploymentProfile (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: 32 #> function Update-KriticalUtcmMgBetaDeviceManagementWindowsAutopilotDeploymentProfile { [CmdletBinding()] param( [String] $WindowsAutopilotDeploymentProfileId, [Object] $InputObject, [Object] $BodyParameter, [String] $ResponseHeadersVariable, [Hashtable] $AdditionalProperties, [Object] $AssignedDevices, [Object] $Assignments, [DateTime] $CreatedDateTime, [String] $Description, [String] $DeviceNameTemplate, [Object] $DeviceType, [String] $DisplayName, [SwitchParameter] $EnableWhiteGlove, [Object] $EnrollmentStatusScreenSettings, [SwitchParameter] $ExtractHardwareHash, [SwitchParameter] $HardwareHashExtractionEnabled, [String] $Id, [String] $Language, [DateTime] $LastModifiedDateTime, [String] $Locale, [String] $ManagementServiceAppId, [Object] $OutOfBoxExperienceSetting, [Object] $OutOfBoxExperienceSettings, [SwitchParameter] $PreprovisioningAllowed, [String[]] $RoleScopeTagIds, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials ) if (-not (Get-Command -Name 'Update-MgBetaDeviceManagementWindowsAutopilotDeploymentProfile' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Update-MgBetaDeviceManagementWindowsAutopilotDeploymentProfile not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Update-MgBetaDeviceManagementWindowsAutopilotDeploymentProfile' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Update-KriticalUtcmMgBetaDeviceManagementWindowsAutopilotDeploymentProfile] ' + 'Update-MgBetaDeviceManagementWindowsAutopilotDeploymentProfile' + ' failed: ' + $_.Exception.Message) throw } } |