Project Server PFE Team Blog

This is the Project Server PFE Team Blog. Premier Field Engineers who support Project Server around the globe contribute to this blog.

September, 2014

  • Find and Manage Updates for SharePoint 2010/2013 and Project Server 2010/2013

    I've always maintained a list of my own links to updates, but I learned of these two links today.  You can find and manage updates for SharePoint and Project Server with these two links.  I hope you find this useful; they both hold a coveted spot in my favorites for CUs now.

    Find and manage updates for SharePoint 2013 and SharePoint 2010 in one place. Use the links on this page to get more information about updates and download the updates themselves.

    SharePoint Updates: http://technet.microsoft.com/en-us/library/dn789211(v=office.14).aspx

    Find and manage updates for Project Server 2013 and Project Server 2010 in one place. Use the links on this page to get more information about updates and to download the updates themselves.

    Project Server Updates: http://technet.microsoft.com/en-us/library/dn789214(v=office.14).aspx

    Update: 

    Based on the number of views this post has received, I'm curious what is driving the interest.  Please post a comment and let me know.   

  • PowerShell Script to automate the data refresh for Project Server 2010

    Repeatable Data Refresh Project Server 2010

    Scenario: You need one or more additional Project Server environments for your patching, testing and development processes. You want an easy and repeatable way to refresh an environment to match the latest production data and EPM configuration. Project Server may or may not be part of your organizations main SharePoint farm, storage is not an issue and you do not need the Reporting and BI service application components restored each time, just the Project Server databases and associated SharePoint content databases.

    Audience

    SharePoint farm administrators, Project Server farm administrators, and disaster recovery engineers. This process can be used as part of your Disaster Recovery plans in order to develop a comprehensive procedure.

    Environment

    This procedure is for SharePoint 2010 and Project Server 2010 to refresh databases on different servers in the same AD domain. This should work on 2013 versions but has not been tested.

    Resources

    These links refer to official Microsoft documentation, however, when in doubt, please refer to TechNet articles. You will also find detailed PowerShell commands and detailed step by step instructions that will help you perform the process described in this document.

    Copy configuration settings between farms (SharePoint Server 2010)

    Best Practices for Backup and Restore

    Project Server Database Only Restore

    The following is a repeatable way to build or refresh a Development (or other) environment to match the latest production data and EPM configuration. This scenario will use an existing farm (target farm) where PWA already exists. Your target servers will have different names and possibly different accounts but they must be part of the same domain as production for the procedures to work.

    Prepare your target Servers

    The following is a check list to complete before beginning the physical restore process.

    1. Windows Server version and patch level should match production servers and SharePoint version and patch level must match production. The SQL version, collation, and patching levels should match between Production and Target environments.

    2. Restore a copy of the SQL databases from Production SQL instance to the target SQL instance, using an SQL tool of your choice. (It is often simpler to take the previous night’s backups for restoration) This should include 5 databases as a minimum, all 4 Project server databases and the project sites content database(s). Note: this procedure does not include automating this step in a repeatable way, typically the DBA will handle it.

    3. Make sure your Farm Admin account is in Local Admin Security group on the WFE box and that it belongs to the correct SQL Roles (Security Admin and DB Creator).  Also, assign dbo rights for the new Farm Admin account to each database after a copy of the databases are in place on the target SQL environment.

    4. Since the target PWA already exists, make sure it is running and tested before you start the procedure so you know the host headers, IP numbers etc. are all in place and operational in case of errors during the procedure.

    5. The target web application is built matching production Authentication providers such as NTLM or Claims etc.

     

    Running the Procedure Manually

    The following is a checklist of steps to take on one of the Web Front End (WFE) servers to complete the restoration process manually. The script below automates this in one command.

    1. Delete the old PWA Site and Site Collection. From Central Admin navigate to Service Applications > Choose appropriate “Project Server Service App”  > “Manage Project Web App Sites” page, click Delete.

    2. Detach the Project Sites Content DB from the Web App that Project Server is using. From Central Admin navigate to Application Management > Manage Content Databases > select your Web App and click the Database name in question and check the box “Remove Content Database”.

    3. Re-start IIS (optional).

    4. Mount the Project Sites Content Database. From Central Admin go back to “Manage Content Databases”, select your Web App and add your database.

    5. Provision new PWA Instance from “Manage Project Web App Sites” page in Central Admin. (Make sure to enter the 4 Project Server database names that match the restored names).

    6. Test the PWA instance.

    7. Re-deploy or install any custom solutions, third party web parts as required.

    8. Final testing.

     

    PowerShell Script to Automate the Refresh

    #Begin Script

    # Use this script to refresh Project Server with new data from another Farm.

    # This script is NOT meant to run in production. There is no error handling, although you can make your own or use the built in error handling.

     

    #Instructions

    # First, have your SQL databases restored to the target database server (reference that server with the $DataBaseServer parameter below).

    # Change the parameters section to suit your environment.

    # Run this script in PowerShell ISE or the Windows PowerShell command line.

     

    ##### Start Parameters section

    $FarmAdmin = "rlan\spadmin"    #Make sure the farm admin account you use has dbo rights on the 5 databases

    $DBPrefix = "SP5-2"     #I use this to prefix the database names, helps organize databases on SQL box

    $Protocol = "http://"

    $MyHostHeader = "ps.rlan.ca"   #Replace the host header with your own value.

    $PwaName = "PWA"

    $WebAppPort = 80

    $DataBaseServer = "sql1"  #Replace with your own DB name or sqlalias.

    $Archive = "ProjectServer_Archive"

    $Draft = "ProjectServer_Draft"

    $Published = "ProjectServer_Published"

    $reporting = "ProjectServer_Reporting"

    $PWAContent = "WSS_Content"

    ###### end paramaters section,

     

    ### Do NOT change anything below this line.  ###

     

    $ver = $host | select version

    if ($ver.Version.Major -gt 1) {$Host.Runspace.ThreadOptions = "ReuseThread"}

    Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

     

    $ProjectWebAppURL =  "$Protocol$MyHostHeader"

    $PwaWeb =  "$Protocol$MyHostHeader/$PwaName"

     

    # Remove PWA and dismount the content db (sites)

    # Cannot dismount first, will get error site is missing

    Remove-SPProjectWebInstance -Url $PwaWeb

    Sleep 5

    Dismount-SPContentDatabase $PWAContent

     

    # You may get this error New-SPProjectWebInstance : Database validation failed. Reason: DatabaseInUse.

    # so this may need to sleep longer, test in your environment, and run it again

     

    sleep 5

     

    # Re-provision with new databases  Create Project Service Application

    Mount-SPContentDatabase $PWAContent -DatabaseServer $DataBaseServer  -WebApplication $ProjectWebAppURL

    sleep 5

    New-SPProjectWebInstance -AdminAccount $FarmAdmin -Url ($ProjectWebAppURL+ "/" + $PwaName)  -ReportingDbserver $DataBaseServer -ArchiveDbname ($DBPrefix+$PwaName +"_Archive") -DraftDbname ($DBPrefix+$PwaName +"_Draft") -PrimaryDbserver $DataBaseServer -PublishedDbname ($DBPrefix+$PwaName +"_Published") -ReportingDbname ($DBPrefix+$PwaName +"_Reporting") -Lcid 1033

     

    #optionally look at properties

    #$SPProjectWebInstance = Get-SPServiceApplication | ? {$_.TypeName -like "*Project*"} |  Get-SPProjectWebInstance 

     

    #optionally remove re-provision SA

    #Get-SPServiceApplication –Name $saName  | remove-spserviceapplication

    #New-SPProjectServiceApplication –Name $SvcAppName –ApplicationPool $ProjectWebAppPool –Proxy

    #End Script

     

     

     

     

    How to run the script automatically on a pre-determined schedule

    http://get-spscripts.com/2011/01/running-sharepoint-powershell-script.html

     

    How to edit and execute the script in PowerShell ISE (recommended)

    http://blogs.technet.com/b/msjimblog/archive/2013/06/25/writing-and-running-scripts-with-powershell-ise.aspx

  • Community Updates - September 2014

    Hello, Microsoft PPM Community.

    This is our second blog post about what is happening in the Microsoft Community.

    This means webcasts/webminars, PMI and MPUG chapter events, and all about what you need to know to stay up to date about Microsoft Project, Project Server, and Project Online.

    We will post about this topic monthly.

    If you are aware of some event that will occur this month and it is not listed here, please, leave a comment with the link.

    Preparing for the PMI-RMP Examination

    September 5, 2014 - 1:00 PM to 2:00 PM Local Time (UTC - 0300)

    Are you thinking about sitting for the PMI-RMP® examination? Excellent! Those with the certification form an elite group of about 2700 members in the project management community. If you have already decided to sit for the exam, you may be wondering how to prepare. Join this webinar to learn how one of our colleagues recently passed the examination the first time. His technique will most certainly be of interest as you prepare for your examination. Whether you are planning to sit for the examination or not, the presentation includes a downloadable spreadsheet template for organizing and managing risk tasks. It is a work in progress so you can modify it to meet the particular needs of your projects.

     

    “Snow White’s Castle Renovation Project” – an MS Project Template for Quantitative Project Manager (QPM®) Ideas 

    September 10 @ 12:00 pm - 1:30 pm EST

    Join MPUG (Official Industry Association for Microsoft Project) for our next member webinar on Wednesday 10 September 2014 where the topic will be “Snow White’s Castle Renovation Project” – An MS Project Template for Quantitative Project Manager (QPM®) Ideas.  This interactive webinar will be facilitated by Mr. Jack Nevison of New Leaf Project Management. Quantitative Project Manager (QPM®) is a series of 15 educational challenges (stripes that can be earned) for those who want to understand the mathematical detail of how to plan, execute, and control reliable projects that consistently meet their goals.  QPM® is about the science of project management.

    PMI Information Systems - Virtual Professional Development Symposium 2014

    September 12, 2014 - 8 a.m. - 5 p.m. EDT (UTC-4)

    Enabling Organizational Change through Strategic Initiatives Six PDUs is just the beginning of the value you’ll get from the Virtual Professional Development Symposium 12 September 2014, a free event for PMI members. This value-packed one-day virtual event focused on Enabling Organizational Change through Strategic Initiatives, will cover: The secrets of “thoroughbred leadership”; Ways to tap the power of project sponsors; Career-building strategies; and Insights into the drivers, human factors and management of change. With words of wisdom by PMI President and CEO Mark Langley, live Q&A sessions with speakers and a virtual exhibition hall you can explore and network in all day, it’s a valuable investment of your time. And you’ll be able to access and download all presentations during and after the event—so you can put the knowledge to work right away.

    FREE EVENT: The Lazy Project Manager – Celebrating 5 Years of ‘Productive Laziness

    September 17 @ 12:00 pm - 1:00 pm EST

    This event is FREE to Members and Non-Members! Please register here: ‘Progress isn’t made by early risers. It’s made by lazy men trying to find easier ways to do something’ Learn about the art of productive laziness with The Lazy Project Manager; understanding what is meant by the ‘productive lazy’ approach to Projects (and life) and learn how to apply these lessons ‘to be twice as productive and still leave the office early’. The session will cover the definition of productive laziness, the science behind the theory (yes there really is some), and will share some personal learning experiences that led to the creation of ‘The Lazy Project Manager’. In addition the audience will consider the three key project stages, one of which the ‘lazy’ project manager works very hard in and the second they should be in the comfortable position of enjoying the ‘comfy chair’ safe in the knowledge that the project is well under control and the final where often some critical work is missed.

    Breakfast Webinar: Project Server

    17 September @ 08:30 – 09:00 GMT

    This webinar will be a more condensed version of our ‘Discover Project Server’ webinar for those that don’t have the time to attend. It will start finish just before you start work.

    Maximise Your Chances of Success for Microsoft Certifications in Project and Project Server

    September 24 @ 12:00 pm - 1:00 pm EST

    Event Description: Join Microsoft MVP Ben Howard to learn what you need to do to prepare for the following two exams Managing Projects with Microsoft Project 2013 (exam 74-343) Managing Programmes and Projects with Project Server 2013 (exam 74-344) Ben was one of the team that developed and critiqued the questions for both exams, so he’s well placed to know the types of questions you’ll face, but please note that that this session will not provide you with any of the actual questions.

    Resource Management in Project Server

    25 September @ 15:00 – 16:00 GMT

    How to assign resources. Visibility on resource demand and capacity. How to track resources.