在批处理中使用 net user 命令,可以管理本地计算机的用户账户。以下是一些 net user 命令的用法示例:
net user username password /add
其中,username 是要创建的用户名,password 是用户的密码。
net user username /delete
其中,username 是要删除的用户名。
net user username /active:no
其中,username 是要禁用的用户名。
net user username /active:yes
其中,username 是要启用的用户名。
net user username
其中,username 是要查看的用户名。
请注意,使用 net user 命令需要以管理员身份运行批处理脚本。