<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Windows-Autopilot on Nicola Suter</title><link>https://tech.nicolonsky.ch/tags/windows-autopilot/</link><description>Recent content in Windows-Autopilot on Nicola Suter</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><copyright>© 2026 Nicola Suter</copyright><lastBuildDate>Sun, 01 Dec 2019 11:21:58 +0000</lastBuildDate><atom:link href="https://tech.nicolonsky.ch/tags/windows-autopilot/rss.xml" rel="self" type="application/rss+xml"/><item><title>Bulk update Windows Autopilot groupTags</title><link>https://tech.nicolonsky.ch/bulk-update-windows-autopilot/</link><pubDate>Sun, 01 Dec 2019 11:21:58 +0000</pubDate><guid>https://tech.nicolonsky.ch/bulk-update-windows-autopilot/</guid><description>&lt;p&gt;Recently I needed to change a couple of groupTags on existing Windows Autopilot devices. Because Windows Autopilot profiles have been assigned based on the groupTag. Of course I could have done this with the portal (check out the &lt;a href="https://devicemanagement.microsoft.com" target="_blank" rel="noreferrer"&gt;devicemanagement.microsoft.com&lt;/a&gt; portal if not done yet!) but I am definitely an automation fan when I need to do repetitive work.&lt;/p&gt;

&lt;h3 class="relative group"&gt;Portal view and property mapping
 &lt;div id="portal-view-and-property-mapping" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#portal-view-and-property-mapping" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;p&gt;In the Intune portal the Group Tag field on an Autopilot device maps to the Azure AD device property &amp;ldquo;OrderID&amp;rdquo;.&lt;br&gt;
Dynamic Azure AD Groups to assign Autopilot profiles to devices can be built with the following membership rule:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(device.devicePhysicalIds -any _ -eq &amp;quot;[OrderID]:mOSD&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;img src="https://tech.nicolonsky.ch/content/images/2019/11/image.png" alt="Windows Autopilot Device"&gt;
&lt;p&gt;The &amp;ldquo;Order Identifier&amp;rdquo; field on an Autopilot device maps to the Azure AD device property &amp;ldquo;PurchaseOrderId&amp;rdquo;.&lt;br&gt;
Dynamic Azure AD Groups to assign Autopilot profiles to devices can be built with the following membership rule:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(device.devicePhysicalIds -any _ -eq &amp;quot;[PurchaseOrderId]:1234&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 class="relative group"&gt;PowerShell script to update groupTags
 &lt;div id="powershell-script-to-update-grouptags" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#powershell-script-to-update-grouptags" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;p&gt;The following script updates the groupTag of one or multiple selected Autopilot devices. Selection is done with a PowerShell GridView.&lt;/p&gt;
&lt;p&gt;Please note:&lt;/p&gt;</description></item><item><title>The Enrollment Status Page (ESP) and shared devices</title><link>https://tech.nicolonsky.ch/the-enrollment-status-page-and-shared-devices/</link><pubDate>Fri, 04 Oct 2019 14:44:10 +0000</pubDate><guid>https://tech.nicolonsky.ch/the-enrollment-status-page-and-shared-devices/</guid><description>&lt;p&gt;If you use the Enrollment Status Page (ESP) on your (Autopilot) devices in blocking mode (Block device use until all apps and profiles are installed) things can get ugly and complicated if you sign-in with another user account on that machine. So it might be better to disable the Enrollment Status Page for all users who sign-in after the initial device enrollment.&lt;/p&gt;

&lt;h2 class="relative group"&gt;ESP behaviour
 &lt;div id="esp-behaviour" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#esp-behaviour" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;I was not aware of the fact that only one ESP gets applied to a device and the first one applied will also remain on that device nevertheless if you configure additional ESP settings for different groups of users. In addition the ESP gets displayed for every account even if the account has no Intune license assigned and causing the ESP therefore to fail.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;The Enrollment Status Page can only be targeted to a user who belongs to an assigned group and the policy is set on the device at the time of enrollment for all users that use the device. &lt;a href="https://docs.microsoft.com/en-us/intune/windows-enrollment-status" target="_blank" rel="noreferrer"&gt;https://docs.microsoft.com/en-us/intune/windows-enrollment-status&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 class="relative group"&gt;Use cases from the field
 &lt;div id="use-cases-from-the-field" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#use-cases-from-the-field" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;I have came past the following use cases where you would want to disable the ESP after the initial enrollment:&lt;/p&gt;</description></item><item><title>Windows Autopilot failed to delete device records</title><link>https://tech.nicolonsky.ch/windows-autopilot-failed-to-delete-device-records/</link><pubDate>Sun, 29 Sep 2019 20:16:03 +0000</pubDate><guid>https://tech.nicolonsky.ch/windows-autopilot-failed-to-delete-device-records/</guid><description>&lt;p&gt;Recently I needed to delete a desktop machine from the Windows Autopilot service in order to use the machine in another tenant.  But the problem was that the Intune and Azure AD device objects were already deleted. All attempts taken within the Microsoft 365 Device Management and Intune Portal were unsuccessful.&lt;/p&gt;

&lt;h2 class="relative group"&gt;Issue
 &lt;div id="issue" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#issue" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Usually the autopilot device shows the associated Azure AD and Intune objects but here they were shown as N/A (not available) because they were already deleted.&lt;/p&gt;
&lt;img src="https://tech.nicolonsky.ch/content/images/2019/09/Stale-Autopilot-Device.png"&gt;
&lt;p&gt;Every attempt to delete the device produced the following error:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Device 8CC9082ZVE deletion failed. Please delete the associated Intune device before deleting this Autopilot device record.&lt;/p&gt;
&lt;/blockquote&gt;&lt;img src="https://tech.nicolonsky.ch/content/images/2019/09/Intune_AutoPilot_Device_Deletion_Failure---Copy.png"&gt;

&lt;h2 class="relative group"&gt;Solution
 &lt;div id="solution" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#solution" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;A quick visit to the Microsoft Store for Business resolved things because there I could delete the device without any issue. &lt;a href="https://businessstore.microsoft.com/" target="_blank" rel="noreferrer"&gt;Direct URL to the Microsoft Store for Business.&lt;/a&gt; After a sync in the Intune Autopilot Devices pane the device had also gone from the Intune portal.&lt;/p&gt;
&lt;img src="https://tech.nicolonsky.ch/content/images/2019/09/Autopilot-Microsoft-Store-for-business-1.png"&gt;

&lt;h2 class="relative group"&gt;Final words
 &lt;div id="final-words" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#final-words" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;This was a rather short post but I hope it prevents headache if you want to delete an Autopilot device with stale Azure AD / Intune records.&lt;/p&gt;</description></item><item><title>Windows Autopilot White Glove Field Notes</title><link>https://tech.nicolonsky.ch/windows-autopilot-white-glove-field-notes/</link><pubDate>Wed, 14 Aug 2019 16:38:31 +0000</pubDate><guid>https://tech.nicolonsky.ch/windows-autopilot-white-glove-field-notes/</guid><description>&lt;p&gt;I&amp;rsquo;m happy to share some field notes and experiences with the Windows Autopilot White Glove feature which is available with the Windows 10 1903 release. I&amp;rsquo;ve done a lot of testing and engineering for a recent project which also included this brand new feature.&lt;/p&gt;

&lt;h2 class="relative group"&gt;First things first (requirements)
 &lt;div id="first-things-first-requirements" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#first-things-first-requirements" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;This is probably the most important information of this post. Really make sure to verify the following prerequisites for Autopilot White Glove. Because there are additional requirements compared to Autopilot enrollments.&lt;/p&gt;

&lt;h3 class="relative group"&gt;Basic Autopilot
 &lt;div id="basic-autopilot" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#basic-autopilot" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;p&gt;Make sure that a &amp;ldquo;classical&amp;rdquo; Autopilot Deployment is working properly without any issues.&lt;/p&gt;

&lt;h3 class="relative group"&gt;Hardware and OS
 &lt;div id="hardware-and-os" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#hardware-and-os" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Hardware with support for device Attestation (&amp;ldquo;Physical devices that support TPM 2.0 and device attestation; virtual machines are not supported.&amp;rdquo;)&lt;/li&gt;
&lt;li&gt;Physical devices with Ethernet connectivity (WiFi connectivity is not supported!)&lt;/li&gt;
&lt;li&gt;Windows 10, version 1903 with &lt;a href="https://support.microsoft.com/help/4505903" target="_blank" rel="noreferrer"&gt;KB4505903&lt;/a&gt; injected (equals OS Build 18362.267)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 class="relative group"&gt;Starting the white glove adventure
 &lt;div id="starting-the-white-glove-adventure" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#starting-the-white-glove-adventure" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;

&lt;h3 class="relative group"&gt;Preparing Windows 10 1903
 &lt;div id="preparing-windows-10-1903" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#preparing-windows-10-1903" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;p&gt;As mentioned by Michael Niehaus Windows multiple Autopilot issues were fixed by &lt;a href="https://support.microsoft.com/help/4505903" target="_blank" rel="noreferrer"&gt;KB4505903&lt;/a&gt;. So we need to inject this cumulative update to the downloaded source. This was already the first hurdle to overcome because &lt;em&gt;I&amp;rsquo;ve missed the fact that the Windows Setup (install.wim) actually contained multiple image indexes (yeah it&amp;rsquo;s kinda embarrassing)&lt;/em&gt;. We achieve this by using dism offline servicing with &lt;strong&gt;PowerShell&lt;/strong&gt; cmdlets.&lt;/p&gt;</description></item><item><title>Windows Autopilot White Glove Error 0x81036501</title><link>https://tech.nicolonsky.ch/windows-autopilot-white-glove-error-0x81036501/</link><pubDate>Thu, 08 Aug 2019 16:58:05 +0000</pubDate><guid>https://tech.nicolonsky.ch/windows-autopilot-white-glove-error-0x81036501/</guid><description>&lt;p&gt;While testing Autopilot White glove for a customer project my test machines always got stuck within the &amp;ldquo;Registering your device for mobile management&amp;rdquo; step and timed out after 12 minutes and returned the error &amp;ldquo;0x81036501&amp;rdquo; just before showing the White Glove Failed screen. I was doing my tests with Windows 10 1903 DE (German) with the most recent cumulative update installed, meaning OS build: 18362.267.&lt;/p&gt;

&lt;h2 class="relative group"&gt;The Issue
 &lt;div id="the-issue" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-issue" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;As normal Autopilot enrollments were working like a charm this one had to be related to the White Glove scenario. Here&amp;rsquo;s a screen capture showing the actual behavior (unfortunately with German display language):&lt;/p&gt;
&lt;figure class="kg-card kg-image-card"&gt;&lt;img src="https://tech.nicolonsky.ch/content/images/2019/08/AutoPilotWhiteGlove-1.gif" class="kg-image"&gt;&lt;/figure&gt;
&lt;p&gt;By pressing [shift] + [F10] i opened a command prompt and launched the event viewer (eventvwr.msc). In the &amp;ldquo;&lt;em&gt;Microsoft-Windows-ModernDeployment-Diagnostics-Provider/Autopilot&lt;/em&gt;&amp;rdquo; event log I found the following error popping up multiple times, including a retry attempt and limit:&lt;/p&gt;
&lt;!--kg-card-begin: markdown--&gt;
&lt;p&gt;&lt;code&gt;Autopilot discovery failed to find a valid MDM. Confirm that the AAD tenant is properly provisioned and licensed for exactly one MDM. HRESULT = 0x81036501&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;AutopilotManager failed during device enrollment phase DeviceDiscovery. HRESULT = 0x81036501&lt;/code&gt;&lt;/p&gt;
&lt;!--kg-card-end: markdown--&gt;
&lt;p&gt;On the enrollment status page the error &amp;ldquo;0x81036501&amp;rdquo; got displayed for like one second before showing the red generic Autopilot White glove error screen.&lt;/p&gt;</description></item></channel></rss>