on error resume next 'WMI disksinfo Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "Disks" Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "" strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colHDDs = objWMIService.ExecQuery("Select caption,size,serialnumber from win32_diskdrive") For Each disco In colHDDs Wscript.StdOut.WriteLine "" Next Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine ""