Closed aslan-im closed 2 years ago
@aslan-im, on the first issue, -ExtractHardwareHash
is a switch parameter and not a boolean.
➜ Get-Help Update-MgDeviceManagementWindowAutopilotDeploymentProfile -Parameter ExtractHardwareHash
-ExtractHardwareHash [<SwitchParameter>]
HardwareHash Extraction for the profile
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
You'll need to use like this -ExtractHardwareHash:$false
to explicitly set to false.
On the second issue (also applies to the first issue), this is a service error/unsupported feature. It looks like the API does not currently support updating a windowsAutopilotDeploymentProfile
. The only supported HTTP method as per the reference docs is GET
, see https://docs.microsoft.com/en-us/graph/api/resources/intune-shared-windowsautopilotdeploymentprofile?view=graph-rest-beta#methods.
I would recommend you open an API feature request at https://developer.microsoft.com/en-us/graph/support for this to be added to the service.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
I have tried to update the existing AutoPilot profile, but unsuccessfully: Updating simple parameter:
Update-MgDeviceManagementWindowAutopilotDeploymentProfile -WindowsAutopilotDeploymentProfileId 'e299114b-4f05-4ca7-840c-6c6d75bc7776' -ExtractHardwareHash $False
However it should accept boolean as in my attempt
Also tried to update OutOfBoxExperienceSettings SkipKeyboardSelectionPage:
Output:
Module version 1.8.0