搜索
查看: 687|回复: 0

一个获取windows系统信息的批处理脚本分享

[复制链接]

1839

主题

2255

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
11913
发表于 2015-9-20 20:27:50 | 显示全部楼层 |阅读模式
获取一些系统信息的批处理脚本,希望对你有用~
  1. @echo off
  2. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  3. echo System Information  >> System_Details.txt
  4. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  5. systeminfo | findstr /B /C:"OS Name" /C:"OS Version" > System_Details.txt
  6. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  7. echo Hostname >> System_Details.txt
  8. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  9. hostname >> System_Details.txt
  10. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  11. echo Users>> System_Details.txt
  12. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  13. net users >> System_Details.txt
  14. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  15. echo Route table >> System_Details.txt
  16. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  17. route print >> System_Details.txt
  18. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  19. echo Netstat INformation>> System_Details.txt
  20. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  21. netstat -ano >> System_Details.txt
  22. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  23. echo Firewall State >> System_Details.txt
  24. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  25. netsh firewall show state >> System_Details.txt
  26. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  27. echo Firewall configuration >> System_Details.txt
  28. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  29. netsh firewall show config >> System_Details.txt
  30. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  31. echo Scheduled tasks >> System_Details.txt
  32. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  33. schtasks /query /fo LIST /v >> System_Details.txt
  34. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  35. echo tasklist >> System_Details.txt
  36. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  37. tasklist /SVC >> System_Details.txt
  38. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  39. echo net start >> System_Details.txt
  40. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  41. net start >> System_Details.txt
  42. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  43. echo driverquery >> System_Details.txt
  44. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  45. DRIVERQUERY >> System_Details.txt
  46. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  47. echo Wmic hotfix >> System_Details.txt
  48. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  49. wmic qfe get Caption,Description,HotFixID,InstalledOn >> System_Details.txt
  50. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  51. echo reg queries - elavated  >> System_Details.txt
  52. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  53. reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer\AlwaysInstallElevated
  54. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  55. echo reg queries - elavated  >> System_Details.txt
  56. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  57. sc qc Spooler >> System_Details.txt
  58. accesschk.exe -ucqv Spooler >> System_Details.txt
  59. accesschk.exe -uwcqv "Authenticated Users" * >> System_Details.txt
  60. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  61. echo upnhosts - elavated  >> System_Details.txt
  62. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  63. sc qc upnphost >> System_Details.txt
  64. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
  65. echo End of Script  >> System_Details.txt
  66. echo --------------------------------------------------------------------------------------------------- >> System_Details.txt
复制代码
过段时间可能会取消签到功能了
您需要登录后才可以回帖 登录 | Join BUC

本版积分规则

Powered by Discuz!

© 2012-2015 Baiker Union of China.

快速回复 返回顶部 返回列表