<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://maytide.net/read.php/1970.htm</link>
<title><![CDATA[HOWTO: 为现有设备添加 Windows Autopilot 配置支持]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Microsoft Cloud]]></category>
<pubDate>Fri, 20 Dec 2019 08:51:07 +0000</pubDate> 
<guid>https://maytide.net/read.php/1970.htm</guid> 
<description>
<![CDATA[ 
	<p><img src="http://goxia.maytide.net/attachment.php?fid=49"></p><p><font color="#fd3f0d" size="4"><strong>HOWTO: 为现有设备添加 Windows Autopilot 配置支持</strong></font></p><p>回顾：<p>“<a href="https://goxia.maytide.net/read.php/1946.htm">HOWTO: 收集 DeviceID 用于测试 Windows Autopilot</a>”<p>"<a href="https://goxia.maytide.net/read.php/1957.htm">HOWTO: 将收集的 Windows Autopilot DeviceID 添加到 Intune</a>"<p>"<a href="https://goxia.maytide.net/read.php/1958.htm">HOWTO: 在 Intune 中为 Windows Autopilot 部署创建设备组</a>"<p>"<a href="https://goxia.maytide.net/read.php/1959.htm" target="_blank">HOWTO: 在 Intune 中创建 Windows Autopilot 配置文件</a>"<p>"<a href="https://goxia.maytide.net/read.php/1966.htm" target="_blank">HOWTO: 使用 Intune 部署 Microsoft Edge</a>"<p><br/><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows Autopilot 为组织提供了一种将原始的未接触过的 Windows 10 设备直接交付给最终用户的方法。在 <strong>Windows 10 1809或更高版本上</strong>提供了适用于现有设备的 Windows Autopilot。使用这个功能我们可以为那些从 Windows 7 升级而来的 Windows 10 设备提供 <strong>用户驱动模式</strong>（<strong>User Driven Mode</strong>）的 Windows Autopilot 支持。<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 其流程就是从 Intune 中获取 Windows Autopilot 的配置文件，并预先将该配置文件部署到这些设备上，在进入 Windows 10 OOBE 阶段会自动加载 Windows Autopilot 配置文件从而启动对应的部署过程。<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 首先，我们要在一台 Windows 设备上安装相应的 PowerShell 模块，它们是 <strong>AzureAD</strong> 以及 <strong>WindowsAutopilotIntune</strong> 模块，请以管理员权限打开 PowerShell，并执行以下命令：<p><div class="code">install-module azuread</div><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/1-install-module_azuread.png"><img width="630" height="536" title="1-install-module_azuread" style="margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="1-install-module_azuread" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/1-install-module_azuread_thumb.png" border="0"></a></p><p><div class="code">install-moudle windowsautopilotintune</div></p><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/2-install-module_windowsautopilotintune.png"><img width="630" height="536" title="2-install-module_windowsautopilotintune" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="2-install-module_windowsautopilotintune" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/2-install-module_windowsautopilotintune_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 以上模块安装完毕后，导入 <strong>WindowsAutoPilotIntune</strong> 模块，即：</p><p><div class="code">import-module windowsautopilotintune</div></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 然后执行“<strong>connect-msgraph</strong>”连接并进行身份验证。</p><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/3-import-module_windowsautopilotintune.png"><img width="560" height="536" title="3-import-module_windowsautopilotintune" style="margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="3-import-module_windowsautopilotintune" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/3-import-module_windowsautopilotintune_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果登录成功，则会看到当前的账户和对应的 TenantID。</p><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/4-connect-msgraph.png"><img width="630" height="536" title="4-connect-msgraph" style="margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="4-connect-msgraph" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/4-connect-msgraph_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 使用“<strong>get-autopilotprofile</strong>”可以获取到已经创建过的 Windows Autopilot 配置文件。</p><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/5-get-autopilotprofile.png"><img width="630" height="536" title="5-get-autopilotprofile" style="margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="5-get-autopilotprofile" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/5-get-autopilotprofile_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 要使用这些配置文件，需要将其转换为 JSON 格式，为此执行命令：</p><p><div class="code">get-autopilotprofile &#124; converto-autopilotconfigurationjson</div></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 之后会看到转换后的格式呢容，将 &#123;&#125; 段落间的内容全部复制，然后打开记事本程序，将内容粘贴进去，在保存时务必使用“<strong><font style="background-color: rgb(255, 255, 0);">ANSI</font></strong>”编码，且文件名必须是“<strong><font style="background-color: rgb(255, 255, 0);">autopilotconfigurationfile.json</font></strong>”。</p><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/6-convertojson.png"><img width="630" height="536" title="6-convertojson" style="margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="6-convertojson" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/6-convertojson_thumb.png" border="0"></a></p><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/7-autopilotconfigurationfile_json.png"><img width="630" height="367" title="7-autopilotconfigurationfile_json" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="7-autopilotconfigurationfile_json" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Windows-Autopilot-_E22D/7-autopilotconfigurationfile_json_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果想简便也可以执行使用 PowerShell 实现转换并保存为 JSON 文件，参考如下：</p><p><div class="code">get-autopilotprofile &#124; converto-autopilotconfigurationjson &#124; out-file c:\autopilot\autopilotconfigurationfile.json -encoding ascii</div></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 当获取到要使用的 Windows Autopilot 的配置文件（<strong>AutoPilotConfigurationFile.json</strong>）后，将其部署到目标设备的指定目录下，当进入 OOBE 阶段时便会应用该目录下的 Windows Autopilot 配置文件。</p><p><div class="code">%SYSTEMDRIVE%\Windows\provisioning\Autopilot\</div></p><p><br/></p><p>注意：如果现有设备已经注册到 Windows Autopilot，则分配的配置文件优先，仅当在线配置文件超时时，“适用于现有设备的 Windows Autopilot”配置文件才适用。</p><p><br/></p><p>参考文档：</p><p><a href="https://docs.microsoft.com/en-us/configmgr/osd/deploy-use/windows-autopilot-for-existing-devices/?WT.mc_id=WDIT-MVP-4000544" target="_blank">https://docs.microsoft.com/en-us/configmgr/osd/deploy-use/windows-autopilot-for-existing-devices</a></p><p><a href="https://docs.microsoft.com/en-us/windows/deployment/windows-autopilot/existing-devices/?WT.mc_id=WDIT-MVP-4000544" target="_blank">https://docs.microsoft.com/en-us/windows/deployment/windows-autopilot/existing-devices</a></p>
]]>
</description>
</item>
</channel>
</rss>