Windows Powershell- Detect Docking Stations and attached monitors


  1. Posts : 5
    Windows 10
       #1

    Windows Powershell- Detect Docking Stations and attached monitors


    I am trying to write a script to detect all docking stations and monitors attached to those docking station for Lenovo Thinkpad t540p laptops on a domain network. Most of the monitors are Asus. Any suggestions or is this even possible? Running powershell from DEV WIN 10
      My Computer


  2. Posts : 17,636
    Windows 10 Pro
       #2

    You could use cmdlet Get-CimInstance:

    Code:
    Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorBasicDisplayParams

    Windows Powershell- Detect Docking Stations and attached monitors-2016_02_04_22_18_381.png

    Multiply the horizontal and vertical image size with 40 to get resolution in pixels. For example MaxHorizontalImageSize 48 / MaxVerticalImageSize 27 = 1920 * 1080 resolution.

    More information about the monitors can be found with the following command:

    Code:
    Get-CimInstance win32_desktopmonitor
    -- OR --
    Code:
    Get-CimInstance win32_videocontroller | select caption, CurrentHorizontalResolution, CurrentVerticalResolution

    And, if needed, information about the GPU:

    Code:
    Get-CimInstance win32_videocontroller

    Kari
    Last edited by Kari; 04 Feb 2016 at 19:14. Reason: Fixed some typos
      My Computer


  3. Posts : 5
    Windows 10
    Thread Starter
       #3

    Im sorry I forgot one word thatll make a complete difference. I am looking for the script to grab the serial numbers from the docking stations and serial numbers of the monitors attached to the docking station.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 05:16.
Find Us




Windows 10 Forums