Monday, August 22, 2016

Get the value of a NoteProperty

You get to a NoteProperty by putting the entire note property in quotes like this:

(Get-SCOMClass -Name 'Microsoft.Windows.Computer'|Get-SCOMClassInstance)[0].'[Microsoft.Windows.Computer].PrincipalName'.Value

I had a hard time Googling how-to get to the value of NoteProperty fields on (OpsMgr) powershell objects until I found Steve's blog:

http://stevesbog.loungent.com/2014/02/19/using-square-brackets-in-powershell-queries/#.V7sELvmF5aQ

The simple trick I needed was to put the entire property in quotes.





2 comments:

Kevin said...

Adware | What Is Adware? | Virus Remover And Adware Removal Tool many people now a days are searching for this kind of adware removal tool in order to remove adware from their system.
Trojan | What Is Trojan | Virus Remover And Trojan Removal Tool similarly people now days also search for trojan virus remover to remove all kind of trojan from their system.
Browser Hijacker | Browser Hack | Browser Hijacker Remo val Tool

gream said...

Gclub69 also has a role model of online gaming, it is a great way to play online casino games with the greatest number of thirst. Golden slot Online gaming customers have come to play a lot and complete all the requirements to play online games with the easiest way. In addition, we also have the scheme of playing slots online. exceedingly Each online gambler can play a variety of online games, and all the eagerness to play online at any time. We also have a way of playing online gambling games. Online casino game players have come to experience the atmosphere of playing online games, and all the passion and desire online enormous. 24/7 online service. Register here. สล็อตออนไลน์ 1000% secure website. We have more than one standard.