How to Get full name of property in powershell output

This topic contains 3 replies, has 2 voices, and was last updated by  Matt Bloomfield 1 week, 4 days ago.

  • Author
    Posts
  • #93343

    Ajay
    Participant

    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

    Matt Bloomfield
    Participant

    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

      Ajay
      Participant

      Thanks!! Matt.

    • #93405

      Matt Bloomfield
      Participant

      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

You must be logged in to reply to this topic.