Today I tried to export my project tasks as a csv file using PowerShell. I couldn’t find any helpful documentation on how to do this. A few articles that did almost what I wanted but just not the right thing.

Just a few lines and job done:

$svcProjectUrl = $applicationUrl + “/_vti_bin/PSI/Project.asmx?wsdl”

$svcProjectProxy = New-WebServiceProxy -uri $svcProjectUrl -useDefaultCredential

$project = $svcProjectProxy.ReadProjectList().Project

$project | Select Proj_name, Proj_UID, Proj_Type ` | Export-CSV .\$applicationName.csv -Delimiter “,”

if ($project.Proj_Name -ne $null)     {

Write-Host “Exporting”  $project.Proj_Name

$tasks = $svcProjectProxy.ReadProject($project.Proj_UID, 1).Task

$tasks | Select Task_name, Task_UID |  Export-CSV .\Tasks$applicationName.csv -Delimiter “,”


By Pieter Veenstra

Business Applications and Office Apps & Services Microsoft MVP working as a Microsoft Productivity Principal Consultant at HybrIT Services. You can contact me using

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: