MSEndpointMgr / Intune

Microsoft Intune scripts
MIT License
667 stars 247 forks source link

Upload-WindowsAutopilotDeviceInfo.ps1 seems to no longer work #71

Open bezik46 opened 1 year ago

bezik46 commented 1 year ago

It runs, it does NOT error, but device never appears in Autopilot and local output is:


@odata.context            : https://graph.microsoft.com/beta/$metadata#deviceManagement/importedWindowsAutopilotDeviceI
                            dentities/$entity
id                        : dc40a435-c6ca-41a6-812c-2f3b0f477bed
groupTag                  :
serialNumber              : 5P9KMX3
productKey                : dc40a435-c6ca-41a6-812c-2f3b0f477bed
importId                  : dc40a435-c6ca-41a6-812c-2f3b0f477bed
hardwareIdentifier        :
assignedUserPrincipalName :
state                     : @{deviceImportStatus=unknown; deviceRegistrationId=; deviceErrorCode=0; deviceErrorName=}```
bezik46 commented 1 year ago

It turned out that swapped motherboard was Dell refurb & ZtdDeviceAssignedToOtherTenant

But I could only see the "error" in https://learn.microsoft.com/en-us/autopilot/add-devices#powershell

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
PowerShell.exe -ExecutionPolicy Bypass
Install-Script -name Get-WindowsAutopilotInfo -Force
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Get-WindowsAutopilotInfo -Online