Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Computer description report

Created: 07 Jun 2012 • Updated: 11 Jul 2012 | 2 comments

Hi

We using ITMS 7.1 SP2

Can we get report which shows computer description.

Comments 2 CommentsJump to latest comment

JimChud's picture

EDIT - i had a look below and was unable to find it in my inventory data. you would need to run a custom inventory at your machines. The guides below will help you find the details and i have also attached the WMI you are looking to run to return the data you require.

If its not in the inventory data which is possible it would have to be a custom inventory. You can check by going to the machine opening up the resource manager and checking through the data related to the machine or SQL and running select queries on the vcomputer view and inv computer / os tables. You will need to ensure you have run full inventories with all the advanced dataclasses enabled. If you don't find it check wmi and the registry for the data you're looking for and write a custom inventory to gather it. I'll have a look at lunch to see if I can mock something up.

Below i've linked some samples and the howto documents.
The samples are really useful with examples of scanning with WMI and getting device details.

https://www-secure.symantec.com/connect/articles/how-programmatically-create-custom-inventory-nsi-file http://www.symantec.com/docs/HOWTO10487 - Introduction to Custom Inventories http://www.symantec.com/business/support/index?page=content&id=HOWTO9148 - Samples of custom inventories Hope this helps

The WMI code is:

on error resume next
Const HKLM = &H80000002
strComputer = "."
Set objRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2").ExecQuery("Select Description FROM Win32_OperatingSystem")

For Each object In objRegistry
 strDescription = object.Description
 msgbox(strDescription)
Next

Or you can do this:

Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objRegistry = GetObject _
    ("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "System\CurrentControlSet\Services\lanmanserver\parameters"
strValueName = "srvcomment"
objRegistry.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strValue
Wscript.Echo strVersion

See what works :)

Regards Jim

Regards Jim.
Connect Etiquette: "Mark as Solution" those posts which resolve your problem and give a thumbs up to useful comments, articles and downloads.

JimChud's picture

Did this solve your problem?

Regards Jim.
Connect Etiquette: "Mark as Solution" those posts which resolve your problem and give a thumbs up to useful comments, articles and downloads.