1、加域退域脚本
加入域的脚本:
@echo off
netdom join %computername% /domain:aa.com /UserD:aa\user /PasswordD:pass /REBoot:5
退出域的脚本:
@echo off
netdom remove %computername% /domain:aa.com /UserD:aa\user /PasswordD:pass /REBoot:5
2、运用cpau以管理员身份运行某程序
CPAU.exe -u administrator -p password -ex "D:\setup.exe"
加密
CPAU -u administrator -p 123456 -ex "f:\Program Files\QQ2008 Beta2\qq.exe" -enc -file G:\temp\start.mp3
解密
CPAU -dec -file g:\temp\start.mp3 -lwp
3、修改用户密码
net user mayuehehe mayuehehe
4、修改ip 修改dns
cmd /c netsh interface ip set address name="ローカル エリア接続" source=dhcp
cmd /c netsh interface ip set dns name="ローカル エリア接続" source=dhcp
加入域的脚本:
@echo off
netdom join %computername% /domain:aa.com /UserD:aa\user /PasswordD:pass /REBoot:5
退出域的脚本:
@echo off
netdom remove %computername% /domain:aa.com /UserD:aa\user /PasswordD:pass /REBoot:5
2、运用cpau以管理员身份运行某程序
CPAU.exe -u administrator -p password -ex "D:\setup.exe"
加密
CPAU -u administrator -p 123456 -ex "f:\Program Files\QQ2008 Beta2\qq.exe" -enc -file G:\temp\start.mp3
解密
CPAU -dec -file g:\temp\start.mp3 -lwp
3、修改用户密码
net user mayuehehe mayuehehe
4、修改ip 修改dns
cmd /c netsh interface ip set address name="ローカル エリア接続" source=dhcp
cmd /c netsh interface ip set dns name="ローカル エリア接続" source=dhcp
转载于:https://blog.51cto.com/mayuehehe/245392