HOWTO: 为现有设备添加 Windows Autopilot 配置支持

回顾:

HOWTO: 收集 DeviceID 用于测试 Windows Autopilot

"HOWTO: 将收集的 Windows Autopilot DeviceID 添加到 Intune"

"HOWTO: 在 Intune 中为 Windows Autopilot 部署创建设备组"

"HOWTO: 在 Intune 中创建 Windows Autopilot 配置文件"

"HOWTO: 使用 Intune 部署 Microsoft Edge"


        Windows Autopilot 为组织提供了一种将原始的未接触过的 Windows 10 设备直接交付给最终用户的方法。在 Windows 10 1809或更高版本上提供了适用于现有设备的 Windows Autopilot。使用这个功能我们可以为那些从 Windows 7 升级而来的 Windows 10 设备提供 用户驱动模式User Driven Mode)的 Windows Autopilot 支持。

        其流程就是从 Intune 中获取 Windows Autopilot 的配置文件,并预先将该配置文件部署到这些设备上,在进入 Windows 10 OOBE 阶段会自动加载 Windows Autopilot 配置文件从而启动对应的部署过程。

        首先,我们要在一台 Windows 设备上安装相应的 PowerShell 模块,它们是 AzureAD 以及 WindowsAutopilotIntune 模块,请以管理员权限打开 PowerShell,并执行以下命令:

install-module azuread

1-install-module_azuread

install-moudle windowsautopilotintune

2-install-module_windowsautopilotintune

        以上模块安装完毕后,导入 WindowsAutoPilotIntune 模块,即:

import-module windowsautopilotintune

        然后执行“connect-msgraph”连接并进行身份验证。

3-import-module_windowsautopilotintune

        如果登录成功,则会看到当前的账户和对应的 TenantID。

4-connect-msgraph

        使用“get-autopilotprofile”可以获取到已经创建过的 Windows Autopilot 配置文件。

5-get-autopilotprofile

        要使用这些配置文件,需要将其转换为 JSON 格式,为此执行命令:

get-autopilotprofile | converto-autopilotconfigurationjson

        之后会看到转换后的格式呢容,将 {} 段落间的内容全部复制,然后打开记事本程序,将内容粘贴进去,在保存时务必使用“ANSI”编码,且文件名必须是“autopilotconfigurationfile.json”。

6-convertojson

7-autopilotconfigurationfile_json

        如果想简便也可以执行使用 PowerShell 实现转换并保存为 JSON 文件,参考如下:

get-autopilotprofile | converto-autopilotconfigurationjson | out-file c:\autopilot\autopilotconfigurationfile.json -encoding ascii

        当获取到要使用的 Windows Autopilot 的配置文件(AutoPilotConfigurationFile.json)后,将其部署到目标设备的指定目录下,当进入 OOBE 阶段时便会应用该目录下的 Windows Autopilot 配置文件。

%SYSTEMDRIVE%\Windows\provisioning\Autopilot\


注意:如果现有设备已经注册到 Windows Autopilot,则分配的配置文件优先,仅当在线配置文件超时时,“适用于现有设备的 Windows Autopilot”配置文件才适用。


参考文档:

https://docs.microsoft.com/en-us/configmgr/osd/deploy-use/windows-autopilot-for-existing-devices

https://docs.microsoft.com/en-us/windows/deployment/windows-autopilot/existing-devices

Microsoft Cloud | 评论(0) | 引用(0) | 阅读(2202)
发表评论
昵称 [注册]
密码 游客无需密码
网址
电邮
打开HTML 打开UBB 打开表情 隐藏 记住我