用Powershell添加管理员
$Password = Read-Host -AsSecureString
输入密码
或者
$password = ConvertTo-SecureString “PassWord” -AsPlainText -Force
然后
New-LocalUser “User” -Password $Password -FullName "My user" -Description "Description of this account."
Add-LocalGroupMember -Group "Administrators" -Member “User”