Finding MP for Monitor with PowerShell

Today I needed to find the Management Pack for a certain Monitor using PowerShell. And it took me quite some time to find the correct info. Not sure if this was due to my search queries on Bing and that other one though;-)

But if you are looking for a way to find the MP for a certain Monitor this is the way I used.

$mp = (get-monitor | where {$_.Name -match "Name.Monitor"}).getmanagementpack()

Have fun using PowerShell.

BTW You also should take a look at PowerBoots. PowerBoots makes it easier for scripters to create graphical user interfaces in PowerShell, exposing much of the power of WPF to PowerShell in a simple syntax which supports events, threading, and much, much, more.

Comments (0)

Skip to main content