Forum Discussion

ASQ1979's avatar
ASQ1979
Copper Contributor
Apr 13, 2023

Project Server New List to Existing Project Workspaces

Hi,

 

We have on premise Microsoft Project Server 2016, is it possible to create a new custom list for a project site template, yet push out to all existing project sites without having to manually add it individually, and without some PowerShell script?

 

Many thanks

    • ASQ1979's avatar
      ASQ1979
      Copper Contributor
      Thank you, Paul. Confirmed what I suspected but good to have confirmation all the same. Appreciate the response.
      • therealToomanyhats's avatar
        therealToomanyhats
        Copper Contributor
        the code can almost be No Code.
        build the new list you want to distribute to many places
        then use Central administration to create an exported.cmp of that list (content management/movement package Central admin uses Export-SPWeb)

        A little bit of code(pseudo Powershell but this is a very simple loop based on a list or collection)
        that represent the list of all subsites where you want to add the new list.

        foreach( SPSite sps in (SPWeb)spw0)
        {
        Import-SPWeb -Identity "https:\\PWA.domain.com\" + sps.Name + "\" -Path <exported.cmp> [-Force] [-NoFileCompression] [-Verbose]
        }

Resources