how to fix Windows autopilot import error .csv

Lehlogonolo Phoshoko 0 Reputation points
2025-12-09T05:23:06.1733333+00:00

I ran the .csv script successfully but when I try and Import the file to Intune I get this error Windows autopilot import error

Microsoft Copilot | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-09T05:23:18.1266667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To fix the Windows Autopilot import error when importing a .csv file into Intune, you should first check for common issues that may cause the error. Here are some steps you can follow:

    1. Check for Existing Device Records: Ensure that the device you are trying to import is not already registered in your tenant. If it is, you will need to delete the existing record from Microsoft Intune before importing the new .csv file.
      • To do this, sign in to the Microsoft Intune admin center, navigate to Devices > Windows > Windows enrollment > Devices (under Windows Autopilot Deployment Program), select the devices you want to delete, and then click Delete.
    2. Verify the .csv File Format: Make sure that the .csv file has not been edited in Microsoft Excel or any other editor that might introduce extra characters. It's best to use Notepad or a similar text editor to ensure the file format remains valid.
    3. Check for Errors in the .csv File: If the import fails, the error message may indicate specific lines in the .csv file that are causing the issue. Review those lines for any discrepancies or formatting issues.
    4. Use the Correct PowerShell Script: If you haven't already, use the Get-WindowsAutoPilotInfo PowerShell script to generate the .csv file correctly. This script ensures that the necessary device information is included in the right format.
    5. Gather Logs if Necessary: If the issue persists, you may need to collect diagnostic logs to provide more information for troubleshooting. You can run the command Mdmdiagnosticstool.exe -area Autopilot -cab c:\out.cab to collect relevant logs.

    If after following these steps you still encounter issues, you might need to contact Microsoft Support for further assistance.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.