1.net share
共享管理
- 查看共享
net share
- 设置共享
net share c$=c:
- 删除共享
net share c$ /del
2.net user
用户管理命令
- 查看用户
net user
- 新增用户
net user 用户名 密码 /add
- 设置用户禁用或者启用
net user 用户名 /active:yes(no)
- 删除用户
net user test /del
3.net localgroup
组管理
- 查看所有组
net localgroup
- 查看组下用户
net localgroup 组名
- 增加用户到组
net localgroup 组名 用户 /add
- 删除组下用户
net localgroup 组名 用户 /del
4.net start
启动服务
5.net stop
停止服务