查询windows系统用户列表批处理脚本
标签:系统用户 脚本 off use 处理 成功 windows系统 列表 命令
@echo offecho 本机所有用户:>>user.txt
for /f "skip=4 tokens=1-3" %%i in (‘net user‘) do (
if not "%%i"=="命令成功完成" echo %%i>>user.txt
if not "%%j"=="" echo %%j>>user.txt
if not "%%k"=="" echo %%k>>user.txt
)
echo .
echo 当前登陆本机的账户是:>>user.txt
echo %username%>>user.txt
exit>nul
查询windows系统用户列表批处理脚本
标签:系统用户 脚本 off use 处理 成功 windows系统 列表 命令
温馨提示: 本文由杰米博客推荐,转载请保留链接: https://www.jmwww.net/file/14186.html