批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程
[批处理文件精品]批处理版照片整理器[批处理文件精品]纯批处理备份&还原驱动在线第三方下载
返回列表 发帖

[转贴] VBS脚本列出内网的中计算机(工作组也可以)

用vbs列出内网的中计算机(工作组也可以)的代码,需要的朋友可以参考下。

  1. 'Handle Errors
  2. On Error Resume Next
  3. 'Get the provider object
  4. Set prov = GetObject("WinNT:")
  5. 'Examine the available domains the provider can reach
  6. For each dom in prov
  7. 'Examine the objects in the domain and check for Computer objects
  8. For each o in dom
  9. If o.Class = "Computer" Then
  10. 'Display properties of the Computer
  11. WScript.Echo o.Class & " " & o.Name
  12. WScript.Echo " Owner: " & o.Owner
  13. WScript.Echo " Division: " & o.Division
  14. WScript.Echo " OperatingSystem: " & o.OperatingSystem
  15. WScript.Echo " OS Version: " & o.OperatingSystemVersion
  16. WScript.Echo " Processor: " & o.Processor
  17. WScript.Echo " ProcessorCount: " & o.ProcessorCount
  18. End If
  19. Next
  20. Next
复制代码

转自:http://www.jb51.net/article/27133.htm

回复 2# Demon


嗯,不知道。
如果垃圾百度也是抄别人的那该肿么办呢?

TOP

返回列表