Ghost Solution Suite

 View Only

Retrieve Monitor Serial Numbers in Ghost - By Adding WMI Elements and Using Inventory 

Nov 10, 2009 04:46 PM

I wanted to be able to gather the system serial numbers and the attached monitors serial numbers and then generate a report.

Serial numbers for the main computer was already in WMI (\\.\root\CIMV2\Win32_BIOS\SerialNumber) and I could already get that information.
I found a VBS utility that would add the monitor serial number to WMI ( I am not a VBS person so I can't offer support or enhancements to the VBS utility).
Then using the ghost console I can grab that from WMI and generate a report.
But I needed to add the new WMI to the Collected Data.

The detailed step-by-step guide should allow you to add your own custom WMI elements and be able to generate GSS 2.5 reports on them.
 

Needed: monsernum.vbs - attached below rename from monsernum.txt to monsernum.vbs

 

  1. Copy monsernum.vbs to c:\utils\.. On ghost console server

 

  1. Run monsernum.vbs on the ghost console server. This will add the WMI elements.
    "C:\WINDOWS\system32\cscript.exe" c:\utils\monsernum.vbs
     
C:\Utils\Berning>"C:\WINDOWS\system32\cscript.exe" c:\utils\berning\monsernum.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

WMI Found, Processing Continues
WMI Monitor key 1: DISPLAY\DEFAULT_MONITOR\5&2CA6D679&0&10000000&06&05
Processing Other Displays
EDID not found
Monitor manufactured in December of 1995
No monitor serial number found. Possibly the computer is a laptop.
No monitor model name was found. Possibly the computer is a laptop.
Monitor manufactured in December of 1999
Monitor serial number: HI94635224
Monitor model name: M70B
Processing WMI Classes and Properties
Creating Monitors Class for CimV2 Namespace
added data class to CimV2 Namespace
wrote the data to WMI
Script Finished

 
  1. In the Ghost Console turn on the "Collected Data sets in the Inventory"

Tools --> Options --> Inventory tab
 

clip_image002.jpg

 

  1. In the Ghost Console expand to Inventory --> Collected Data --> Hardware and add a new Collected Data Set

 

clip_image004.jpg

 

  1. It will scan the WMI. Enter the following information:
     

clip_image006.jpg

 

  1. Click OK

 

clip_image008.jpg

 

  1. Click Ok

 

  1. Now we need to create an Inventory View. In the Ghost Console expand to Inventory --> View  --> Hardware. Add a new Monitor View.

clip_image010.jpg

 

  1. Enter the following information:

clip_image012.jpg

 

  1. (optional) I like to have a single view that has the CPU serial numbers, Monitor serial numbers and Mac addresses, this way I can  have all of this info on a single report.

clip_image014.jpg

 

  1. Now we need to setup a report to use that view (optionally you can filter the machines). Expand Inventory --> Report --> New  Inventory Report

clip_image016.jpg

 

  1. Enter the following information (but you wont be able to run the report yet) then click ok.

clip_image018.jpg

 

  1. Need to run the VBS script on each client and retrieve the inventory information.
    Set up a task that includes Software and File Actions and Refresh Inventory:

    Transfer: 
    monsernum.vbs to the c:\utils directory
    Execute:
    "C:\WINDOWS\system32\cscript.exe" c:\utils\monsernum.vbs
    Refresh Inventory
     
  2. Execute the task (can run on all servers and classroom machines).
    Wait for task to complete before going to step 15.
     
  3. Run the report. Expand to Inventory --> Report , right click on Serial Numbers (created in step 12) --> Run Report …
    You can save it to a comma separated file.

clip_image020.jpg

 

 

Statistics
0 Favorited
0 Views
2 Files
0 Shares
0 Downloads
Attachment(s)
txt file
monsernum.txt   12 KB   1 version
Uploaded - Feb 25, 2020
docx file
Retrieve monitor serial numbers.docx   409 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Related Entries and Links

No Related Resource entered.