WORKS GREAT!! Now one more question. I have all of teh info going to the DOS window, which is fine for testing. I want to get the infor into $VAR to send to file.
example
code:
$strComputer = "."
$objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\$strComputer\root\cimv2")
$colDisks = $objWMIService.ExecQuery("Select * from Win32_LogicalDisk")
For each $objDisk in $colDisks
?"Description: " $vbTab $objDisk.Description
?"DeviceID: " $vbTab $objDisk.DeviceID
?"FileSystem: " $vbTab $objDisk.FileSystem
?"FreeSpace: " $vbTab $objDisk.FreeSpace
?"MediaType: " $vbTab $objDisk.MediaType
?"Name: " $vbTab $objDisk.Name
?"Size: " $vbTab $objDisk.Size
next
How do I get the info in $vbTab $VAR into a $var I can use to put into a file? Probably a simple answer but as you can tell I have never played with this before. Thanks for all of the help.
Jural