# get all WMI instances Get-WmiObject-Class CIM_LogicalDevice | # display propertes Select-Object-Property __Class, Name, Description, __Path | # let user select some Out-GridView-Title'Select one or more (hold CTRL)'-PassThru | # retrieve the full selected instance by path ForEach-Object { [wmi]$_.__Path | Select-Object * | Out-Default }
SettingID --------- 640 x 480 x 4294967296 colors @60 Hertz 640 x 480 x 4294967296 colors @67 Hertz 640 x 480 x 4294967296 colors @72 Hertz 640 x 480 x 4294967296 colors @75 Hertz 720 x 400 x 4294967296 colors @70 Hertz 720 x 480 x 4294967296 colors @60 Hertz 720 x 576 x 4294967296 colors @50 Hertz (Interlaced) 800 x 600 x 4294967296 colors @60 Hertz 800 x 600 x 4294967296 colors @72 Hertz 800 x 600 x 4294967296 colors @75 Hertz 832 x 624 x 4294967296 colors @75 Hertz 1024 x 768 x 4294967296 colors @60 Hertz 1024 x 768 x 4294967296 colors @70 Hertz 1024 x 768 x 4294967296 colors @75 Hertz 1152 x 864 x 4294967296 colors @75 Hertz 1152 x 870 x 4294967296 colors @75 Hertz 1280 x 720 x 4294967296 colors @50 Hertz (Interlaced) 1280 x 720 x 4294967296 colors @60 Hertz 1280 x 800 x 4294967296 colors @60 Hertz 1280 x 1024 x 4294967296 colors @60 Hertz 1280 x 1024 x 4294967296 colors @75 Hertz 1440 x 900 x 4294967296 colors @60 Hertz 1600 x 900 x 4294967296 colors @60 Hertz 1680 x 1050 x 4294967296 colors @60 Hertz 1920 x 1080 x 4294967296 colors @24 Hertz (Interlaced) 1920 x 1080 x 4294967296 colors @25 Hertz (Interlaced) 1920 x 1080 x 4294967296 colors @30 Hertz (Interlaced) 1920 x 1080 x 4294967296 colors @50 Hertz (Interlaced) 1920 x 1080 x 4294967296 colors @60 Hertz 1920 x 1440 x 4294967296 colors @60 Hertz 2048 x 1152 x 4294967296 colors @60 Hertz 3840 x 2160 x 4294967296 colors @24 Hertz (Interlaced) 3840 x 2160 x 4294967296 colors @25 Hertz (Interlaced) 3840 x 2160 x 4294967296 colors @30 Hertz (Interlaced) 4096 x 2160 x 4294967296 colors @24 Hertz (Interlaced) 4096 x 2160 x 4294967296 colors @25 Hertz (Interlaced) 4096 x 2160 x 4294967296 colors @30 Hertz (Interlaced)
functionSend-PipelineEndNotification { begin { Write-Host"Collecting Data..."-NoNewline-ForegroundColor DarkYellow } process { $_ } end { Write-Host"Completed."-ForegroundColor Green [Console]::Beep() } }
Get-CimInstance-ClassName CIM_LogicalDevice | Select-Object-Property Name, CreationClassName, DeviceID, SystemName | Out-GridView-Title'Select one or more (hold CTRL)'-PassThru
Manufacturer Name Status StatusInfo -------------------------------- Intel(R) Corporation Intel(R) Display-Audio OK 3 DisplayLink DisplayLink USB Audio Adapter OK 3 Realtek Realtek Audio OK 3