国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > VBScript > 正文

vbs列出內(nèi)網(wǎng)的中計算機(工作組也可以)

2020-06-26 18:27:46
字體:
來源:轉載
供稿:網(wǎng)友
用vbs列出內(nèi)網(wǎng)的中計算機(工作組也可以)的代碼,需要的朋友可以參考下。
 
復制代碼代碼如下:

'Handle Errors 
On Error Resume Next 
'Get the provider object 
Set prov = GetObject("WinNT:") 

'Examine the available domains the provider can reach 
For each dom in prov 

'Examine the objects in the domain and check for Computer objects 
For each o in dom 
If o.Class = "Computer" Then 

'Display properties of the Computer 
WScript.Echo o.Class & " " & o.Name 
WScript.Echo " Owner: " & o.Owner 
WScript.Echo " Division: " & o.Division 
WScript.Echo " OperatingSystem: " & o.OperatingSystem 
WScript.Echo " OS Version: " & o.OperatingSystemVersion 
WScript.Echo " Processor: " & o.Processor 
WScript.Echo " ProcessorCount: " & o.ProcessorCount 

End If 

Next 
Next 
 

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 日喀则市| 怀来县| 比如县| 张家川| 谷城县| 板桥市| 准格尔旗| 临猗县| 衡南县| 阿巴嘎旗| 奉化市| 弥勒县| 和硕县| 内江市| 维西| 潼关县| 平遥县| 乌拉特中旗| 舞阳县| 舞钢市| 双桥区| 泰兴市| 通山县| 洪江市| 本溪| 松滋市| 夏津县| 兰考县| 云梦县| 安西县| 科尔| 平谷区| 柯坪县| 三江| 土默特右旗| 沂南县| 古蔺县| 鄢陵县| 平陆县| 平原县| 林州市|