您的位置:首页 > 其它

总结下自己常用的cmd命令

2009-12-18 15:38 211 查看
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
本文出自 “康桑那米达” 博客,请务必保留此出处http://mayuehehe.blog.51cto.com/369408/245392
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: