新增帳號
新增帳號
新增帳號
shift + F10 開啟命令提示字元,輸入以下指令。
新增帳號並加入管理員群組
新增帳號並加入管理員群組
net user **<帳號>** /add
net localgroup Administrators **<帳號>** /add
設定密碼永不過期
設定密碼永不過期
powershell Set-LocalUser -Name **<帳號>** -PasswordNeverExpires 1
整合成批次檔
整合成批次檔
@echo off
set account=<帳號>
net user %account% /add
net localgroup Administrators %account% /add
powershell Set-LocalUser -Name %account% -PasswordNeverExpires 1