mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
windows: 修复部分小语种系统下,管理员账号没启用
This commit is contained in:
parent
b3e39dec09
commit
11a115e6e7
@ -73,7 +73,12 @@
|
||||
<!-- 启用 administrator 账户 -->
|
||||
<RunSynchronousCommand wcm:action="add">
|
||||
<Order>4</Order>
|
||||
<Path>net user Administrator /active:yes</Path>
|
||||
<!-- vista 没有自带 powershell -->
|
||||
<!-- <Path>powershell "$User = Get-WmiObject Win32_UserAccount | where SID -like *-500; $User.Disabled = $False; $User.Put()"</Path> -->
|
||||
<!-- win7 此时无法用 wmic useraccount -->
|
||||
<!-- <Path>wmic useraccount where "sid like '%-500'" set Disabled=false</Path> -->
|
||||
<!-- https://learn.microsoft.com/archive/technet-wiki/13813.localized-names-for-administrator-account-in-windows -->
|
||||
<Path>cmd /c "for %a in (Administrator Administrador Administrateur Administratör Администратор Järjestelmänvalvoja Rendszergazda) do (net user %a /active:yes && exit)"</Path>
|
||||
</RunSynchronousCommand>
|
||||
<!-- win7 在此阶段找不到网卡 -->
|
||||
<!-- <RunSynchronousCommand wcm:action="add">
|
||||
|
Loading…
x
Reference in New Issue
Block a user