1.    04 Feb 2016 #1
    Join Date : Jan 2016
    Chicago, IL
    Posts : 5
    Windows 10

    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.    04 Feb 2016 #2
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 13,116
    Windows 10 Pro

    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
    Join Date : Jan 2016
    Chicago, IL
    Posts : 5
    Windows 10
    Thread Starter

    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


Similar Threads
Thread Forum
Docking station detection problem
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...
Drivers and Hardware
Your favorite radio stations??
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...
Chillout Room
WX Doesn't Detect Other Monitors (GTX 760)
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...
Graphic Cards
iHeartRadio’s Live and Custom Radio Stations Now Available on Groove
42549 Read more: http://blogs.windows.com/windowsexperience/2015/10/13/iheartradios-live-and-custom-radio-stations-now-available-alongside-your-personal-music-collection-on-groove-in-windows-10/
Windows 10 News
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 04:36.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App

Windows 10 Forums