Skip to content

SPProjectServerWssSettings

dscbot edited this page Mar 17, 2023 · 12 revisions

SPProjectServerWssSettings

Parameters

Parameter Attribute DataType Description Allowed Values
Url Key String The default zone URL of the Project site to set WSS settings for
CreateProjectSiteMode Required String How should new SharePoint sites be created? AutoCreate, UserChoice, DontCreate

Description

Type: Distributed Requires CredSSP: No

This resource is used to control settings that relate to the SharePoint sites that are linked to projects in Project Server.

NOTE: The account you use to run this resource (through PsDscRunAsCredential properties) needs to have elevated rights to execute this resource. It is recommended to use the SharePoint Farm Account for this purpose to avoid receiving a "GeneralSecurityAccessDenied" error.

Examples

Example 1

This example demonstrates how to set WSS settings for a PWA site

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPProjectServerWssSettings WssSettings
        {
            Url                   = "http://projects.contoso.com/pwa"
            CreateProjectSiteMode = "AutoCreate"
            PsDscRunAsCredential  = $SetupAccount
        }
    }
}
Clone this wiki locally