def get_stores():
 ret = dict()
 cmd = "Get-ChildItem -Path 'Cert:\\' | Select-Object LocationName, StoreNames"
 items = _cmd_run(cmd=cmd, as_json=True)
 for item in items:
  ret[item['LocationName']] = list()
  for store in item['StoreNames']:
   ret[item['LocationName']].append(store)
 return ret

def get_stores ( ) : ret = dict ( ) cmd = "Get-ChildItem -Path 'Cert:\\' | Select-Object LocationName, StoreNames" items = _cmd_run ( cmd = cmd , as_json = True ) for item in items : ret [ item [ 'LocationName' ] ] = list ( ) for store in item [ 'StoreNames' ] : ret [ item [ 'LocationName' ] ] . append ( store ) return ret
get the certificate location contexts and their corresponding stores .