How to Get full name of property in powershell output

Welcome Forums General PowerShell Q&A How to Get full name of property in powershell output

This topic contains 3 replies, has 2 voices, and was last updated by

 
Participant
9 months, 1 week ago.

  • Author
    Posts
  • #93343

    Participant
    Points: 0
    Rank: Member

    Hi Team,

    I am trying to get full name of get-windowscapability in windows 10 1609.But the all i get is name with~~~~ and version. I want to get full name instead of ~~~ in my output could you please help, command i am using is:-

    get-windowscapability -online | select-object -expandproperty name

    and the output is :-

    Language.Basic~~~en-US~0.0.1.0
    Language.Handwriting~~~en-US~0.0.1.0
    Language.OCR~~~en-US~0.0.1.0
    Language.Speech~~~en-US~0.0.1.0
    Language.TextToSpeech~~~en-US~0.0.1.0
    NetFX3~~~~

    I want to get full text instead of ~~.

    Please help.

    Ajay Kumar.

  • #93400

    Participant
    Points: 4
    Rank: Member

    I don't think there's anything you can do about that, the tilde characters are part of the name:

    dism /online /Get-Capabilities
    • #93402

      Participant
      Points: 0
      Rank: Member

      Thanks!! Matt.

    • #93405

      Participant
      Points: 4
      Rank: Member

      You can get more information, which might be useful, by specifying the name. It will return an AdvancedCapabilityObject instead of a BasicCapability object

      Get-WindowsCapability -online | 
          foreach {Get-WindowsCapability -Online -Name $_.Name | 
             Select Name, DisplayName, Description} | 
                Export-Csv e:\temp\capability.csv -Append -NoClobber -NoTypeInformation

The topic ‘How to Get full name of property in powershell output’ is closed to new replies.