Project Server 2010 / 2013 - Publish all projects

This PowerShell script will publish all projects in Project Server when run with an account that is a Project Server administrator. This can either be run on demand or set to run on a schedule using the Windows Task Scheduler.

4.2 Star
4,828 times
Add to favorites
Project Server
E-mail Twitter Digg Facebook
  • publish all
    1 Posts | Last post November 14, 2013
    • queue publish has one argument = true , it tells the server to run full publish and delete contect before publishing. what happens if fullpublish=false?
  • parameters
    1 Posts | Last post November 14, 2013
    • the function queuePublish has several arguments. The last one if empty tells the job to do not publish the project site. It works, but the job task publish still fires into the queue. 
      Type: System.Guid
      The GUID of the queue job.
      Type: System.Guid
      The GUID of the project.
      Type: System.Boolean
      If True, removes any previous data saved for this project in the Published database before publishing.
      Type: System.String
      The URL of the SharePoint site to be created for the project.
  • Problem with task after mass publication
    1 Posts | Last post September 11, 2013
    • I used this script but i have other problem when i publish all of projects the task status changes to New even if they have 100% complete and have been approved
  • How to make this work
    2 Posts | Last post March 19, 2013
    • I'm not able to make this script work. I feel it's returning error (the shell window shows something in red font and disappears) but don't know what it is. I'm new to MSP and terribly want to know how to publish multiple projects without opening them one at a time on Project Professional 2010. Any help will be very much appreciated. Thanks
    • Hi there,
      Please can you advise me of the error? Try running the script in the PowerShell ISE, you will be able to capture the error then.
  • Using this to update a formula field
    1 Posts | Last post February 19, 2013
    • I've tried this solution in an environment that I manage... however it doesn't seem to update custom formula project fields we have in the project files. Specifically we have a field which compares a Custom Project Date field with the DateValue(Now()) function in order to have a comparison of the date vs. 'today'. Since the projects are not being updated on a daily basis, this solution would be a good way to trigger the formula to at least refresh for the change in date on a daily basis.
      Can the code be adjusted to accomplish this?
  • Publish if Project Checked Out?
    2 Posts | Last post December 13, 2012
    • Hi there,
      Does this script publish the project even if it's checked out?  For project and timesheet data, I want to publish the portfolio nightly so reporting is accurate, but some PMs will leave their projects checked-out overnight.  I know this can be done via PSI, so not sure if the PowerShell extensions allow?
    • Hi there,
      Yes the script here will publish the project even if it is checked out providing the account you are running the script with has access to that project. By the way, this isn't a PowerShell extension, it is a PowerShell script that calls the PSI methods. 
  • Publish sub projects
    2 Posts | Last post September 23, 2012
    • Hi Paul,
      Is it possible to use a switch in order to publish master projects and their sub projects?
    • Hi Avi,
      You could filter the list of projects down using Proj_type,
11 - 17 of 17 Items