IT Management Suite

 View Only
  • 1.  Computer description report

    Posted Jun 07, 2012 09:27 AM

    Hi

    We using ITMS 7.1 SP2

    Can we get report which shows computer description.

     

     

     



  • 2.  RE: Computer description report

    Posted Jun 11, 2012 08:51 AM

    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



  • 3.  RE: Computer description report

    Posted Aug 06, 2012 06:56 AM

    Did this solve your problem?