-
Notifications
You must be signed in to change notification settings - Fork 107
SPManagedAccount
Brian Farnhill edited this page Jun 2, 2016
·
18 revisions
Parameters
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
AccountName | Key | string | The username of the account | |
Account | Write | String | The credential with password of the account | |
EmailNotification | Write | Uint32 | How many days before a password change should an email be sent | |
PreExpireDays | Write | Uint32 | How many days before a password expires should it be changed | |
Schedule | Write | string | What is the schedule for the password reset | |
Ensure | Write | string | Present ensures managed account exists, absent ensures it is removed | Present, Absent |
InstallAccount | Write | String | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5 |
Description
This resource will ensure a managed account is provisioned in to the SharePoint farm. The Account object specific the credential to store (including username and password) to set as the managed account. The settings for EmailNotification, PreExpireDays and Schedule all relate to enabling automatic password change for the managed account, leaving these option out of the resource will ensure that no automatic password changing from SharePoint occurs.
Example
SPManagedAccount WebPoolManagedAccount
{
AccountName = $WebPoolManagedAccount.UserName
Account = $WebPoolManagedAccount
Ensure = "Present"
PsDscRunAsCredential = $InstallAccount
}
- 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