need to get the full name of an object

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Curtis Smith Curtis Smith 1 month ago.

  • Author
    Posts
  • #73772
    Profile photo of situscript
    situscript
    Participant

    Hi all,

    i am running the below command and getting the output like this.

    PS C:\Windows\system32> get-ncaggr

    Name State TotalSize Used Available Disks RaidType RaidSize Volumes
    —- —– ——— —- ——— —– ——– ——– ——-
    aggr0 online 3.0 TB 95% 148.3 GB 3 raid_dp, normal 23 1
    aggr0_xxxxxxxxxxx2_02_0 online 3.0 TB 95% 148.3 GB 3 raid_dp, normal 23 1
    xxxxxxxxxxx2_01_ssd_ag... online 44.0 TB 42% 25.7 TB 16 raid_dp, normal 23 8

    how to get the full name of the aggr name instead of ... if it's long name.

  • #73774
    Profile photo of Olaf Soyk
    Olaf Soyk
    Participant

    To see every property produced by the cmdlet you can use

    get-ncaggr | Select-Object -Property *

    and then you can choose whatever you need

  • #73781
    Profile photo of Curtis Smith
    Curtis Smith
    Participant
    get-ncaggr | Select-Object -ExpandProperty Name

    or

    (get-ncaggr).Name

You must be logged in to reply to this topic.