Comment exporter en CSV avec PowerShell ?

Réponses rédigées par Antoine
Dernière mise à jour : 2022-06-02 13:44:07
Thèmes : powershell - csv
Question

Comment faire pour exporter une sortie PowerShell en CSV ?

Réponse

Pour exporter une sortie PowerShell en CSV, vous pouvez utiliser la commande Export-CSV.

Exemple pour exporter la liste des services au format CSV avec PowerShell :

Get-Service | Export-CSV c:\liste_services.csv

Vous trouverez d'avantage d'information sur la manière d'exporter en CSV, avec PowerShell, via cette page du site de Microsoft.