说明 : 此命令在windows界面也可以实现
- cmd 用户管理
net user 查看用户
net user 用户名 密码 修改用户的密码
net user 用户名 密码 /add 新增设定密码的用户
net user 用户名 /active:yes 该用户可以登录
net user 用户名 /active:no 该用户不可登录
net user 用户名 /del 删除用户名
每个用户都有自己的UID
whoami/user 可以查看用户的uid
标红的位置为用户的UID 创建的用户uid为1000之后
administrator 的uid 为500
net localgroup 查看所有组
net locagroup 组名 查看指定组名的组员
net localgroup 组名 用户名 /add 将某个用户加入指定组
net localgroup 组名 /add 增加指定组名的组
net localgroup 组名 /del 删除指定组名的组
- bat 文件区间块的定义
: 表示定义区间块
goto 表示去向第几个区间块