Windows常用命令行工具

#ping命令
ping <address> [-t]
pathping <address>  //显示ping的路径

#tracert路由路径
tracert <address>

#显示进程
netstat [-n]
netstat -nao   //显示进程号

#杀进程
ntsd -c q -p [pid]

#进程id与进程的关系
tasklist /svc 进程号  

#显示系统信息
systeminfo

#显示本机路由表
route -print

#arp命令
arp -a //显示
arp -d //删除
arp -s <ipaddress> <macaddress> //静态绑定

#用户相关
net user aaa pwd /add //添加
net user aaa /active:yes/no  //是否激活
net localgroup user/administrator aaa /add  //添加到组

#强制检测更新
wuauclt /detectnow

#fat32转换为ntfs
convert x:/fs:ntfs

#服务相关
#远程、本地
sc stop servicename
sc star  servicename
sc config TermService start= disabled/demand/auto
sc \\servername/ip star servicenmame
#本地
net start 服务名
net stop 服务名

#net use
net use \\192.168.1.8\ipc$ "password" /user:"username"  //建立连接
net use h: \\192.168.1.8\c$ //建立本地镜像
net use \\192.168.1.8\ipc$ /del  //删除连接
net use h: /del //删除本地镜像

#以管理员运行
runas /user:administrator 命令
posted on 2008-06-23 20:35  DQW  阅读(301)  评论(0)    收藏  举报