Forum Discussion

TylerWallace's avatar
TylerWallace
Bronze Contributor
Mar 04, 2025

powershell variable multiple output choice

i tried googling how to do this, but the results think im asking something else. its hard to word what im trying to do in a search line. theres a string expression in this script that can output two monitors if they are both hooked up.

 

$DisplayPath = "EDID_{0}_{1}_{2}_{3}" -f $Manufacturer, $ProductID, $Model, $DisplayPathDigit

 is there an way to allow a choice selection for a variable that can have multiple output?

1 Reply

  • Luccask's avatar
    Luccask
    Iron Contributor

    This command fetches information about your monitors using the WMI (Windows Management Instrumentation) class WmiMonitorBasicDisplayParams. You can get details about the connected monitors with this command.