-
Notifications
You must be signed in to change notification settings - Fork 107
SPPasswordChangeSettings
dscbot edited this page Mar 17, 2023
·
18 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
IsSingleInstance | Key | String | Specifies the resource is a single instance, the value must be 'Yes' | Yes |
MailAddress | Required | String | The email address to send notifications of password changes to | |
DaysBeforeExpiry | Write | UInt32 | The number of days before password expiry to send send emails | |
PasswordChangeWaitTimeSeconds | Write | UInt32 | The duration that a password reset will wait for before it times out | |
NumberOfRetries | Write | UInt32 | How many retries if the password change fails |
Type: Distributed Requires CredSSP: No
This resource is used to control settings that relate to the automatic changing of passwords for managed accounts (where they opt-in to be managed by SharePoint). These settings can be manually controlled through central administration, or configured in this resource. The settings relate to email notifications of when passwords are reset, as well as behavior when a reset
This example sets the password change settings for managed accounts in the local farm
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPPasswordChangeSettings ManagedAccountPasswordResetSettings
{
IsSingleInstance = "Yes"
MailAddress = "[email protected]"
DaysBeforeExpiry = "14"
PasswordChangeWaitTimeSeconds = "60"
NumberOfRetries = "3"
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