<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://sufan.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://sufan.maytide.net/read.php/2094.htm</link>
<title><![CDATA[HOWTO: 使用 Intune 为 Windows 启用本地管理员]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Microsoft Cloud]]></category>
<pubDate>Fri, 10 Nov 2023 01:47:22 +0000</pubDate> 
<guid>https://sufan.maytide.net/read.php/2094.htm</guid> 
<description>
<![CDATA[ 
	<p><img alt="logo_intune" src="http://goxia.maytide.net/ftpup/2018/83837cef08fa_F50A/logo_intune_thumb.png"></p><p><strong><font color="#fd3f0d" size="4">HOWTO: 使用 Intune 为 Windows 启用本地管理员</font></strong></p><p>&nbsp;&nbsp;&nbsp; 前面 <a href="https://goxia.maytide.net" target="_blank">gOxiA</a> 与大家分享了“<a href="https://goxia.maytide.net/read.php/2091.htm">HOWTO: 启用本地 Windows Autopilot 重置设备</a>”，文中提到要使用该功能必须要启用本地管理员。对基于 Intune 管理的 Windows PC 来说实施起来并不复杂，今天我们就快速熟悉这一操作流程。</p><p><img alt="AutopilotReset-CTRL_WIN_R" src="http://goxia.maytide.net/ftpup/2018/HOWTO-_DE05/AutopilotReset-CTRL_WIN_R_thumb.png"></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在 <a href="https://intune.microsoft.com" target="_blank">Intune 管理中心</a> 转至 <strong>设备-配置-策略</strong>，<strong>新建策略</strong>，平台为<strong> Windows 10 和更高版本</strong>，配置文件类型为 <strong>设置目录</strong>。</p><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Intune--Windows-_802C/EnableLocalAdmin-CreateDeviceProfile.png"><img width="587" height="254" title="EnableLocalAdmin-CreateDeviceProfile" style="display: inline; background-image: none;" alt="EnableLocalAdmin-CreateDeviceProfile" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Intune--Windows-_802C/EnableLocalAdmin-CreateDeviceProfile_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在 <strong>设置选取器</strong> 中找到 <strong>本地策略安全选项</strong>，然后勾选“<strong>账户 - 启用 Administrator 账户状态</strong>”。</p><p><a href="http://goxia.maytide.net/ftpup/2018/HOWTO--Intune--Windows-_802C/EnableLocalAdmin.png"><img width="634" height="388" title="EnableLocalAdmin" style="display: inline; background-image: none;" alt="EnableLocalAdmin" src="http://goxia.maytide.net/ftpup/2018/HOWTO--Intune--Windows-_802C/EnableLocalAdmin_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 该策略对应的 CSP 为 <a href="https://learn.microsoft.com/zh-cn/windows/client-management/mdm/policy-csp-LocalPoliciesSecurityOptions?WT.mc_id=Portal-Microsoft_Intune_Workflows#accounts_enableadministratoraccountstatus/?WT.mc_id=WDIT-MVP-4000544" target="_blank">Accounts_EnableAdministratorAccountStatus</a><strong></strong>，详细信息如下：</p><p><strong>./Device/Vendor/MSFT/Policy/Config/LocalPoliciesSecurityOptions/Accounts_EnableAdministratorAccountStatus</strong></p><p>格式：<strong>Int</strong></p><p>值：<strong>1</strong> 启用；<strong>0</strong> 禁用（默认）</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font style="background-color: rgb(255, 255, 0);">需要注意：如果在禁用管理员帐户后尝试重新启用管理员帐户，并且当前管理员密码不符合密码要求，则无法重新启用该帐户。</font></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最后分配该策略，例如：所有设备，完成这些操作即完成配置。出于安全性考虑，我们也可以同时勾选“<strong>账户 - 重命名 Administrator 账户</strong>”，以降低穷举类的攻击。该策略对应的 CSP 为 <a href="https://learn.microsoft.com/zh-cn/windows/client-management/mdm/policy-csp-LocalPoliciesSecurityOptions?WT.mc_id=Portal-Microsoft_Intune_Workflows#accounts_renameadministratoraccount/?WT.mc_id=WDIT-MVP-4000544" target="_blank">Accounts_RenameAdministratorAccount</a><strong></strong>，详细信息如下：</p><p><strong>./Device/Vendor/MSFT/Policy/Config/LocalPoliciesSecurityOptions/Accounts_RenameAdministratorAccount</strong></p><p>格式：<strong>chr</strong></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 虽然很轻松的完成了启用本地管理员的配置，但本地管理员的密码管理问题不容忽视。在过去我们需要编写一个脚本来配置本地管理员（Administrator）的密码，但无法实现动态维护，且存在一些安全隐患。现在，<a href="https://entra.microsoft.com" target="_blank">Microsoft Entra</a>（AAD）内置了 LAPS（Windows Local Administrator Password Solution）的支持，可以很轻松的实现本地管理员密码轮换和管理，针对 LAPS 的启用会另起一篇日志与大家分享。</p>
]]>
</description>
</item>
</channel>
</rss>