Author Posts

February 9, 2018 at 9:19 am

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.

February 9, 2018 at 6:38 pm

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

dism /online /Get-Capabilities

February 9, 2018 at 7:16 pm

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