Digitalcandy
IS-IT--Management
Below is the code I'm using;
strComputer = "Computer Name"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colDisks = objWMIService.ExecQuery _
("Select * from Win32_LogicalDisk")
For each objDisk in colDisks
Wscript.Echo "Name: " & vbTab & objDisk.Name
Wscript.Echo "Description: " & vbTab & objDisk.Description
Next
This returns the information I need, (drive letter and Description), but it enumerates for a given computer. Is there a way to specify an IP range and have the information be created in a text file?
strComputer = "Computer Name"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colDisks = objWMIService.ExecQuery _
("Select * from Win32_LogicalDisk")
For each objDisk in colDisks
Wscript.Echo "Name: " & vbTab & objDisk.Name
Wscript.Echo "Description: " & vbTab & objDisk.Description
Next
This returns the information I need, (drive letter and Description), but it enumerates for a given computer. Is there a way to specify an IP range and have the information be created in a text file?