Group Management---2. Group Management Command

interactive mode

First right click on "My Computer"

Find "Management", click to jump to the following interface

Click "Group"

Double-click the name of the group to see the members in each group

Select a member and click Delete to delete the member from the group.

Similarly, click "Add" to add a user to the group.

DOS command mode

net localgroup #列出该计算机上的组列表

net localgroup 组名 #列出该组的详细信息
如:net localgroup administrators #列出administrators组的详细信息

net localgroup 组名 用户名 /add #将用户添加到组中
如:net localgroup administrators shimisi /add #将shimisi用户添加到administrators组中

net localgroup 组名 用户名 /del #将用户从该组中删除
如:net localgroup administrators shimisi /del #将shimisi用户从administrators组中删除

net localgroup 新组名 /add #创建新的组
如:net localgroup CEO /add

 

Guess you like

Origin blog.csdn.net/Justinhhhh/article/details/112763409