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.

3 comments

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s