Extracting The Model and Serial Number of Attached monitors using CIM

Share
Viewing 3 reply threads
  • Author
    Posts
    • #793626
      PowerMe!
      Participant
      Post count: 24
      Member Points: 1,157
      Rank: Level 3

      I am trying to extract a few info about external monitors attached to a computer. One can also wmi.

      Get-CimInstance -Namespace root\wmi -ClassName wmimonitorid

      ———-
      Active : True
      InstanceName : DISPLAY\SHP143E\4&b23856c&0&UID265988_0
      ManufacturerName : {83, 72, 80, 0…}
      ProductCodeID : {49, 52, 51, 69…}
      SerialNumberID : {48, 0, 0, 0…}
      UserFriendlyName :
      UserFriendlyNameLength : 0
      WeekOfManufacture : 40
      YearOfManufacture : 2015
      PSComputerName :

      <hr />

      I was wondering how I could decode the values e.g., {83, 72, 80, 0…} for SerialNumberID, ManufacturerName and ProductCodeId and store them in an inventory.

       

      Ratan Mohapatra

      1+
    • #796101
      Michael Pietroforte
      Keymaster
      Post count: 1852
      Member Points: 23,714
      Author of the year 2018
      Rank: Level 4

      I think the script here is the solution to your problem.

      I am curious. Why do you want retrieve information about monitors with PowerShell?

      2+

      Users who have liked this topic:

      • avatar
      • #802399
        PowerMe!
        Participant
        Post count: 24
        Member Points: 1,157
        Rank: Level 3

        Thanks a lot. That is great.

        Oh so, this is a part of my inventory script. I have 60+ users with notebooks, monitors and docks. I wanted to create an inventory to track them. So I walk to every desk and run my script that takes 2 minutes. It finds:

        – basic computer info (Physical resources, BIOS, service tags, OS, Last Windows Update…)

        – connected devices- monitors and docks and their serial numbers

        The data are stored locally on the computer as a text file. A summary data is written to an Excel File on a USB storage that I use for the program to run. There should be a better way to achieve this. I chose my way as it was versatile ( I was free to add/remove struff) and it let me paly with Powershell.

        I experimented with the .Net options and just came up with the following to get the monitors.

         

        0
    • #802564
      PowerMe!
      Participant
      Post count: 24
      Member Points: 1,157
      Rank: Level 3

      Oh I love that script you shared. I will play with it.

      0
    • #802574
      Michael Pietroforte
      Keymaster
      Post count: 1852
      Member Points: 23,714
      Author of the year 2018
      Rank: Level 4

      You might consider just buying an inventory tool instead of building it yourself with PowerShell. There are many good and cheap solutions. If you build it yourself, it will cost your organization much more and your solution will never be a match to those professional tools. Check out Total Network Inventory as an example.

      1+

      Users who have liked this topic:

      • avatar
Viewing 3 reply threads
  • You must be logged in to reply to this topic.
© 4sysops 2006 - 2020

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account