def list_installed():
 cmd = 'Get-WindowsFeature -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Select DisplayName,Name,Installed'
 features = _pshell_json(cmd)
 ret = {}
 for entry in features:
  if entry['Installed']:
   ret[entry['Name']] = entry['DisplayName']
 return ret

def list_installed ( ) : cmd = 'Get-WindowsFeature -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Select DisplayName,Name,Installed' features = _pshell_json ( cmd ) ret = { } for entry in features : if entry [ 'Installed' ] : ret [ entry [ 'Name' ] ] = entry [ 'DisplayName' ] return ret
list installed features .