2009年7月6日 星期一

用命令管理Windows帳戶net user Command

Net User命令
net user [username [password | *] [options]] [/domain]
username {password | *} /add [options] [/domain]
username [/delete] [/domain]

[範例1]
新增一個Brad帳戶,按下enter後才會提示輸入密碼
C:\net user Brad * /add /fullname:"Brad Chen" /comment:"This is a admin users"
請輸入使用者的密碼:

[範例2]
新增一個Brad帳戶,指定密碼為BradsPasswd並給予全名與描述
C:\net user Brad BradsPasswd /add /fullname:"Brad Chen" /comment:"This is a admin users"

[參考]
How to Use the Net User Command
http://technet.microsoft.com/en-us/library/bb490718.aspx

[補充]
如何用命令列設定密碼永遠有效

沒有留言:

SQL Server Database Mirroring 資料庫鏡像

SQL Server Database Mirroring 資料庫鏡像