-
Notifications
You must be signed in to change notification settings - Fork 107
SPProjectServerLicense
dscbot edited this page Mar 17, 2023
·
11 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
IsSingleInstance | Key | String | Specifies the resource is a single instance, the value must be 'Yes' | Yes |
Ensure | Write | String | Should a Project Server license be enabled or disabled |
Present , Absent
|
ProductKey | Write | String | What is the product key for Project Server |
Type: Distributed Requires CredSSP: No
This resource is used to enable a Project Server license in to a SharePoint 2016 or 2019 farm.
This example enables Project Server in the current environment
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPProjectServerLicense ProjectLicense
{
IsSingleInstance = "Yes"
ProductKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
PsDscRunAsCredential = $SetupAccount
}
}
}
This example disables Project Server in the current environment
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPProjectServerLicense ProjectLicense
{
IsSingleInstance = "Yes"
Ensure = "Absent"
PsDscRunAsCredential = $SetupAccount
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations