-
Notifications
You must be signed in to change notification settings - Fork 107
SPConfigWizard
Yorick Kuijs edited this page Apr 1, 2021
·
17 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 | Present to run the Configuration Wizard. Absent is currently not supported |
Present , Absent
|
DatabaseUpgradeDays | Write | StringArray[] | Specify on which dates running the Configuration Wizard is allowed |
mon , tue , wed , thu , fri , sat , sun
|
DatabaseUpgradeTime | Write | String | Specify in which time frame running the Configuration Wizard is allowed | |
InstallAccount | Write | PSCredential | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 |
Type: Utility Requires CredSSP: No
This resource is used to perform the upgrade step of installing SharePoint updates, like Cumulative Updates, Service Packs and Language Packs. The DatabaseUpgradeDays and DatabaseUpgradeTime parameters specify a window in which the update can be installed. This module has to be used to complete the update installation step, performed by SPProductUpdate.
This example runs the Configuration Wizard as soon as it is applied.
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPConfigWizard RunConfigWizard
{
IsSingleInstance = "Yes"
PsDscRunAsCredential = $SetupAccount
}
}
}
This example only runs the Configuration Wizard in the specified window:
- Saturday and Sunday night between 3am and 5am.
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPConfigWizard RunConfigWizard
{
IsSingleInstance = "Yes"
DatabaseUpgradeDays = "sat", "sun"
DatabaseUpgradeTime = "3:00am to 5:00am"
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