strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer)
Set colItems = objWMIService.InstancesOf("Win32_NetworkAdapter")
For Each objItem in colItems
Wscript.Echo objItem.Description
Wscript.Echo objItem.NetConnectionStatus
Next
Set objWMIService = GetObject("winmgmts:\\" & strComputer)
Set colItems = objWMIService.InstancesOf("Win32_NetworkAdapter")
For Each objItem in colItems
Wscript.Echo objItem.Description
Wscript.Echo objItem.NetConnectionStatus
Next
No comments:
Post a Comment
Thanks for showing interest in tech-jockey.