Advertisement
Advertisement
| 07.07.2008 at 09:22PM PDT, ID: 23545465 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: |
Wscript.Echo "<?xml version=" & Chr(34) & "1.0" & Chr(34) & "?>"
Wscript.Echo "<Inventory>"
Wscript.Echo "<Win32_Drives>"
Wscript.Echo "<HardDrive>"
On Error Resume Next
If Wscript.Arguments.Count = 0 Then
arrComputers = Array(".")
Else
Dim arrComputers()
For i = 0 to Wscript.Arguments.Count - 1
Redim Preserve arrComputers(i)
arrComputers(i) = Wscript.Arguments(i)
Next
End If
For Each strComputer in arrComputers
Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_LogicalDisk Where Description = 'Local Fixed Disk'")
For Each objItem in colItems
WScript.Echo "<HD_VolumeName>" & objItem.VolumeName & "</HD_VolumeName>"
WScript.Echo "<HD_Description>" & objItem.Description & "</HD_Description>"
WScript.Echo "<HD_name>" & objItem.Name & "</HD_name>"
WScript.Echo "<HD_DeviceID>" & objItem.DeviceID & "</HD_DeviceID>"
WScript.Echo "<HD_Size>" & objItem.Size & "</HD_Size>"
Wscript.Echo "<HD_FreeSpace>" & objItem.FreeSpace & "</HD_FreeSpace>"
Wscript.Echo "<HD_FileSystem>" & objItem.FileSystem & "</HD_FileSystem>"
Wscript.Echo "<HD_SerialNumber>" & objItem.VolumeSerialNumber & "</HD_SerialNumber>"
Wscript.Echo "</HardDrive>"
Next
Wscript.Echo "</Win32_Drives>"
Wscript.Echo "<PC_info>"
' Get Local Login Information
Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystem",,48)
For Each objItem in colItems
Wscript.Echo "<Caption>" & objItem.Caption & "</Caption>"
Wscript.Echo "<CurrentTimeZone>" & objItem.CurrentTimeZone & "</CurrentTimeZone>"
Wscript.Echo "<Description>" & objItem.Description & "</Description>"
Wscript.Echo "<Domain>" & objItem.Domain & "</Domain>"
Wscript.Echo "<Manufacturer>" & objItem.Manufacturer & "</Manufacturer>"
Wscript.Echo "<Model>" & objItem.Model & "</Model>"
Wscript.Echo "<Machine_Name>" & objItem.Name & "</Machine_Name>"
Wscript.Echo "<UserName>" & objItem.UserName & "</UserName>"
Next
Wscript.Echo "</PC_info>"
Wscript.Echo "<BIOS_Info>"
' Get Bios info, includng Dell Tag, Bios Revision and Manufacturer
Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each objItem in colItems
Wscript.Echo "<BIOS_Version>" & objItem.BIOSVersion & "</BIOS_Version>"
Wscript.Echo "<BIOS_Build_num>" & objItem.BuildNumber & "</BIOS_Build_num>"
Wscript.Echo "<BIOS_Description>" & objItem.Description & "</BIOS_Description>"
Wscript.Echo "<BIOS_Manufacturer>" & objItem.Manufacturer & "</BIOS_Manufacturer>"
Wscript.Echo "<BIOS_Name>" & objItem.Name & "</BIOS_Name>"
Wscript.Echo "<Dell_Tag>" & objItem.SerialNumber & "</Dell_Tag>"
Wscript.Echo "<BIOS_Status>" & objItem.Status & "</BIOS_Status>"
Wscript.Echo "<BIOS_Version>" & objItem.Version & "</BIOS_Version>"
Next
Wscript.Echo "</BIOS_Info>"
Wscript.Echo "</Inventory>"
Next
|