当前位置: 移动技术网 > 科技>操作系统>windows > 自用cmd命令

自用cmd命令

2020年07月26日  | 移动技术网科技  | 我要评论

也许哪天会用上呢,持续更新

  • 网络信息
ipconfig 			# 查看网卡简要信息
ipconfig /all 		# 查看网卡消息信息
ipconfig /release 	# 释放当前网络自动获取的ip
ipconfig /renew 	# 重新获取ip
ipconfig /flushdns 	# 刷新dns缓存
  • 关闭Windows防火墙
netsh firewall set opmode disable 			# windows server 2003版
netsh advfirewall set allprofiles state off # windows server 2008及以上版本可用
  • 开启远程桌面
wmic path win32_terminalservicesetting where (__class !="") call setallowtsconnections 1 							# windows server 2003版
wmic /namespace:\\root\cimv2\terminalservices path win32_terminalservicesetting where (__class !="") call setallowtsconnections 1 	# windows server 2008及以上
  • 用户相关
whoami /all							    # 查看当前登陆用户详细信息
query user || qwinsta					# 查看当前在线的用户
net user   								# 查看系统上已有的用户
net user tom nihao /add 				# 添加用户
net localgroup 							# 查看系统上的用户组信息
net localgroup administrators tom /add 	# 添加tom用户到administrators组
  • 组策略
gpupdate /force 						# 强制更新组策略
  • 系统信息
systeminfo # 查看系统信息
echo %PROCESSOR_ARCHITECTURE% # 查看CPU架构
wmic qfe get caption,description,hotfixid,installedon		# 查看系统补丁信息
wmic product get name,version # 查看软件名称及版本
wmic service list brief 	# 查看本机服务列表
tasklist 					# 查看任务信息
wmic startup get command,caption # 查看启动程序信息
schtasks /query /fo list /v		# 查看任务计划

本文地址:https://blog.csdn.net/Nicky_Zheng/article/details/107532954

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网