Si vous souhaitez lister tous les PST connectés à votre session outlook voici le code :
$outlook = New-Object -comObject Outlook.Application #$outlook.Session.Stores | where { ($_.FilePath -like '*.PST') } | format-table DisplayName, FilePath -autosize #Nom réel du PST une fois dans OUTLOOK $PSTname = $outlook.Session.Stores | where { ($_.FilePath -like '*.PST') } | Select -ExpandProperty DisplayName #Chemin DU PST $PSTpath = $outlook.Session.Stores | where { ($_.FilePath -like '*.PST') } | Select -ExpandProperty FilePath #Affiche les variables #Nom des PST $PSTname #Chemin des PST $PSTpath