Publish all Project Server 2010 Plans using PowerShell

Below is a script which will publish all projects in Project Server 2010. I have found this useful in the past, and it can save alot of time if you need to perform such an activity;

$svcPSProxy = New-WebServiceProxy -uri “http://ps2010demo/pwa/_vti_bin/PSI/Project.asmx?wsdl” -useDefaultCredential
$EPMTYGUID = [system.guid]::empty
$ProjectList = $svcPSProxy.ReadProjectStatus(“$EPMTYGUID”,”WorkingStore”,””, “0”).Project | format-table proj_uid -hidetableheaders | out-string -stream
foreach ($projectUid in $projectList)
if ($projectUid -ne “”)
$G = [System.Guid]::NewGuid()
$svcPSProxy.QueuePublish(“$G”, $projectUid, “true”,””)}}

Example of the script in action

Remember to change the root part of the URL to suit! You may also need to edit the ” ” signs as well.

Any questions feel free to comment.


  1. No problem, this was simple script I wrote a while ago but very useful! Glad to see it being reposted, always happy to help out the PS community.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s