标题: [系统相关] 批处理如何设置当前用户密码? [打印本页]
作者: ww1813 时间: 2015-11-23 19:25 标题: 批处理如何设置当前用户密码?
求个BAT 小程序设置电脑开机密码的:
1.密码策略的密码复杂性设为 启用
2.密码长度最小值为 8
3.设定密码为abc!1234
我什么都不懂的!只要要批量加入电脑密码才使用的!
麻烦帮写啊 谢谢
作者: 依山居 时间: 2015-11-23 23:21
搜索都不舍得搜索,还干个毛IT。
作者: 依山居 时间: 2015-11-24 01:06
http://zhannei.baidu.com/cse/sea ... 5407466&entry=1
作者: 707093864 时间: 2015-11-24 12:20
net user 用户名 abc!1234/add
作者: DAIC 时间: 2015-11-24 14:54
- @echo off
- pushd "%~dp0"
-
- >>sec.inf echo.[Unicode]
- >>sec.inf echo.Unicode=yes
- >>sec.inf echo.[Version]
- >>sec.inf echo.signature="$CHICAGO$"
- >>sec.inf echo.Revision=1
- >>sec.inf echo.[System Access]
- >>sec.inf echo.MinimumPasswordLength = 8
- >>sec.inf echo.PasswordComplexity = 1
-
- secedit /configure /db sec.sdb /cfg sec.inf /log sec.log /quiet
- del /f /q sec.*
-
- net user %username% "abc!1234"
复制代码
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |