-
Notifications
You must be signed in to change notification settings - Fork 109
SPProjectServerLicense
Yorick Kuijs edited this page Dec 27, 2017
·
12 revisions
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| Ensure | Key | string | Should a Project Server license be enabled or disabled | Present, Absent |
| ProductKey | Write | string | What is the product key for Project Server | |
| InstallAccount | Write | PSCredential | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 |
This resource is used to enable a Project Server license in to a SharePoint 2016 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
{
Ensure = "Present"
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
{
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