总结下自己常用的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
加入域的脚本:
@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
相关文章推荐
- (git入门 git常用命令)自己在公司的Git总结,以及找到的图,和入门须知的git命令
- Android UI 常用项目总结------/*自己编写*/
- C语言常用函数------/*自己总结*/
- 自己总结的一些VC常用技巧
- 十种常用的设计模式(大部分自己总结,部分摘抄)
- Radio CheckBox的常用方法(自己总结)
- 总结自己最近项目中常用的各种类型转换代码(高人勿喷)
- 自己常用的Linux命令总结
- 【Tips】【UE】总结自己常用的UltraEdit使用技巧
- 自己总结了一下常用到的Button链接,代码如下:
- Windows最常用的几个网络CMD命令总结
- UIScrollView的常用属性和方法(自己总结)
- docker 常用命令(自己总结)
- db2入门常用语法(自己整理总结的希望对大家有用)
- 自己总结的一些比较常用的js插件
- 总结自己在.NET中常用的方法
- 总结一下自己常用的linux命令(实战or面试必备)
- 总结自己在.NET中常用的方法
- linux 常用命令 自己总结
- InstallShield 自己总结常用操作