Parameter is incorrect error at ESP phase of Autopilot device preparation policy (Autopilot V2)

Brass Contributor

Hi Team,

 

I am testing the Windows autopilot device preparation profile (Autopilot V2).

Here, I need to rename the device while it is enrolling to the Intune (during ESP). So, I created a script that has below command to rename the device and rebooting it.

 
Rename-Computer -NewName $newname -ErrorAction 'Stop' -ErrorVariable err -Restart -Force
 
The issue I am facing now is that, when the device is at ESP, it runs the script to rename the device and also it restart the device. But after restart it does not complete the device preparation set up and s an shows an error screen called  with message "Parameter is incorrect" and after clicking on OK, I get to see the login screen. After logging in, I am able to use my machine fine and the device is also renamed as per my organization standards.
 
Does anyone also have faced this kind of issue while testing the Autopilot V2 with reboot script at ESP.
 
Regards,
Ashish Arya
 
1 Reply

The "Parameter is incorrect" error during the ESP (Enrollment Status Page) phase of Autopilot device preparation policy (Autopilot V2) typically indicates a configuration issue or mismatch in the device's Autopilot profile settings. This error can arise due to incorrect or incomplete parameters in the device configuration, such as enrollment profiles or provisioning policies. To resolve it, review and verify the Autopilot profile settings, ensure all parameters are correctly defined, and check for any inconsistencies in the deployment configuration. For more detail go there