怎么用cmd命令行创建一个administator组的用户,用户名test,密码123456,怎么用cmd命令行删出这个用户?

ruir 2003-11-28 08:33:40
怎么用cmd命令行创建一个administator组的用户,用户名test,密码123456,怎么用cmd命令行删出这个用户?
系统:win2000 server family
谢谢!
...全文
5926 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
shixianyong 2003-11-28
  • 打赏
  • 举报
回复
D:\>net localgroup administrators lynx /add

改成这样子就ok了.....D:\>net localgroup administrator lynx /add


....................................注意administrator不要写错了

Msn: shi_xianyong@hotmail.com
ruir 2003-11-28
  • 打赏
  • 举报
回复

D:\>net user lynx 123456 /add
命令成功完成。


D:\>net localgroup administrators lynx /add
系统发生 1317 错误。

指定的用户不存在。


D:\>net user lynx /delete
命令成功完成。


D:\>

请问更改权限的那句怎么错了?
shixianyong 2003-11-28
  • 打赏
  • 举报
回复
新增...net user 用户名 密码 /add
删除...net user 用户名 /delete

更改用户权限...net localgroup administrators 用户名 /add
xdgzs 2003-11-28
  • 打赏
  • 举报
回复
以上的都对
TEST是用户名
第一个是添加用户
第二个是加入管理员组
3:删除用户
sungod8 2003-11-28
  • 打赏
  • 举报
回复
更多参考:网络命令之葵花宝典
http://expert.csdn.net/Expert/topic/2427/2427732.xml?temp=.2528955


net user test 123456 /add
net localgroup administrators test /add

net user test /delete

NET USER
[username [password | *] [options]] [/DOMAIN]
username {password | *} /ADD [options] [/DOMAIN]
username [/DELETE] [/DOMAIN]

NET USER creates and modifies user accounts on computers. When used
without switches, it lists the user accounts for the computer. The
user account information is stored in the user accounts database.

username Is the name of the user account to add, delete, modify, or
view. The name of the user account can have as many as
20 characters.
password Assigns or changes a password for the user's account.
A password must satisfy the minimum length set with the
/MINPWLEN option of the NET ACCOUNTS command. It can have as
many as 14 characters.
* Produces a prompt for the password. The password is not
displayed when you type it at a password prompt.
/DOMAIN Performs the operation on a domain controller of
the current domain.
/ADD Adds a user account to the user accounts database.
/DELETE Removes a user account from the user accounts database.

Options Are as follows:

Options Description
--------------------------------------------------------------------
/ACTIVE:{YES | NO} Activates or deactivates the account. If
the account is not active, the user cannot
access the server. The default is YES.
/COMMENT:"text" Provides a descriptive comment about the
user's account. Enclose the text in
quotation marks.
/COUNTRYCODE:nnn Uses the operating system country code to
implement the specified language files for a
user's help and error messages. A value of
0 signifies the default country code.
/EXPIRES:{date | NEVER} Causes the account to expire if date is
set. NEVER sets no time limit on the
account. An expiration date is in the
form mm/dd/yy(yy). Months can be a number,
spelled out, or abbreviated with three
letters. Year can be two or four numbers.
Use slashes(/) (no spaces) to separate
parts of the date.
/FULLNAME:"name" Is a user's full name (rather than a
username). Enclose the name in quotation
marks.
/HOMEDIR:pathname Sets the path for the user's home directory.
The path must exist.
/PASSWORDCHG:{YES | NO} Specifies whether users can change their
own password. The default is YES.
/PASSWORDREQ:{YES | NO} Specifies whether a user account must have
a password. The default is YES.
/PROFILEPATH[:path] Sets a path for the user's logon profile.
/SCRIPTPATH:pathname Is the location of the user's logon
script.
/TIMES:{times | ALL} Is the logon hours. TIMES is expressed as
day[-day][,day[-day]],time[-time][,time
[-time]], limited to 1-hour increments.
Days can be spelled out or abbreviated.
Hours can be 12- or 24-hour notation. For
12-hour notation, use am, pm, a.m., or
p.m. ALL means a user can always log on,
and a blank value means a user can never
log on. Separate day and time entries with
a comma, and separate multiple day and time
entries with a semicolon.
/USERCOMMENT:"text" Lets an administrator add or change the User
Comment for the account.
/WORKSTATIONS:{computername[,...] | *}
Lists as many as eight computers from
which a user can log on to the network. If
/WORKSTATIONS has no list or if the list is *,
the user can log on from any computer.
zenggao 2003-11-28
  • 打赏
  • 举报
回复
net user yourid test 123456 /add
net localgroup administrators test /add
net user test /del
bxjgood66 2003-11-28
  • 打赏
  • 举报
回复
建立用户:net user test 123/add


提升权限:net localgroup administrators test/add

建立用户:net user 用户名 密码 /add


提升权限:net localgroup administrators 用户名 /add

删除:   net user test /delete

6,184

社区成员

发帖
与我相关
我的任务
社区描述
windows网络管理与配置
社区管理员
  • 网络管理与配置社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧