Windows 10: Windows Powershell- Detect Docking Stations and attached monitors

  1.    04 Feb 2016 #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 ComputerSystem Spec

  2. Kari's Avatar
    Posts : 15,037
    Windows 10 Pro
       04 Feb 2016 #2

    You could use cmdlet Get-CimInstance:

    Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorBasicDisplayParams

    Click image for larger version. 

Name:	2016_02_04_22_18_381.png 
Views:	2 
Size:	143.4 KB 
ID:	62461

    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:

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

    And, if needed, information about the GPU:

    Get-CimInstance win32_videocontroller

    Last edited by Kari; 04 Feb 2016 at 20:14. Reason: Fixed some typos
      My ComputerSystem Spec

  3.    05 Feb 2016 #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 ComputerSystem Spec


Related Threads
Docking station detection problem in Drivers and Hardware
Hi I have bought Gold Touch HDDS-U3 docking station, I plugged both usb cables to the computer (one to SSUsb port and one to regular port), waiting for 30 minutes while it was turn off (for battery charging). After that I insert a 3.5' HDD and turn...
Yeah, who listens to the radio now a days.. I do and still love it. Free music!! Nothing better in my mind than free MUSIC!! :) Right now I'm tuned into either: 1 94/7 Portland Alternative 2 Absolute Radio London Both in my mind are very...
Hey there, I've been quite fed up with the fact I can't use my second monitor with Windows 10. I am attempting to install the latest drivers now, but I have done numerous updates and it still doesn't detect my second monitor. I am using a NVIDIA...
42549 Read more:
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 22:14.
Find Us