include noteproperty in output with select-object

Welcome Forums General PowerShell Q&A include noteproperty in output with select-object

Viewing 1 reply thread
  • Author
    Posts
    • #29016
      Participant
      Topics: 28
      Replies: 59
      Points: 154
      Rank: Participant

      how do I get noteproperties into output using select-object? get-member gives me the following

      [HewlettPackard.Servers.HPServer].Model NoteProperty Microsoft.EnterpriseManagement.Common.EnterpriseManagementSimpleObject [Hewl…
      [HewlettPackard.Servers.HPServer].MonitoringSource NoteProperty Microsoft.EnterpriseManagement.Common.EnterpriseManagementSimpleObject [Hewl…
      [HewlettPackard.Servers.HPServer].NetworkName NoteProperty Microsoft.EnterpriseManagement.Common.EnterpriseManagementSimpleObject [Hewl…
      [HewlettPackard.Servers.HPServer].PhysicalMemory NoteProperty Microsoft.EnterpriseManagement.Common.EnterpriseManagementSimpleObject [Hewl…
      [HewlettPackard.Servers.HPServer].SerialNumber NoteProperty Microsoft.EnterpriseManagement.Common.EnterpriseManagementSimpleObject [Hewl…
      [HewlettPackard.Servers.HPServer].SystemFirmware NoteProperty Microsoft.EnterpriseManagement.Common.EnterpriseManagementSimpleObject [Hewl…
      [HewlettPackard.Servers.HPServer].SystemType NoteProperty Microsoft.EnterpriseManagement.Common.EnterpriseManagementSimpleObject [Hewl…
      [HewlettPackard.Servers.HPServer].TotalDisk

      but ‘select-object [HewlettPackard.Servers.HPServer].Manufacturer’ isn’t returning anything. I’ve also tried unsuccessfully to use expandproperty and an expression. no dice.

    • #29017
      Participant
      Topics: 0
      Replies: 669
      Points: 0
      Rank: Member

      if your object is held in variable $obj
      try

      $obj | select-object Manufacturer

      You can list as many properties as you wish e.g.

      $obj | select-object Manufacturer, Model, SerialNumber

Viewing 1 reply thread
  • The topic ‘include noteproperty in output with select-object’ is closed to new replies.