SPSConfigKit is a PowerShell script tool designed to install and configure a SharePoint Farm with PowerShell Desired Configuration.
Download the latest release, Click here!
Required because this module now implements class-based resources. Class-based resources can only work on computers with Windows rManagement Framework 5.0 or above. The preferred version is PowerShell 5.1 or higher, which ships with Windows 10 or Windows Server 2016. This is discussed further on the SPSConfigKit Wiki Getting-Started
This is the list of DSC Modules required for this kit:
- ActiveDirectoryDsc
- ActiveDirectoryCSDsc
- CertificateDsc
- ComputerManagementDsc
- OfficeOnlineServerDsc
- NetworkingDsc
- PSDscResources
- SharePointDsc
- SqlServerDsc
- WebAdministrationDsc
- xCredSSP
- xPSDesiredStateConfiguration
You can find documention for each module on the repository dsccommunity
SPSConfigKit compiles credentials (service accounts, farm passphrase, PFX passwords) into the MOF for every node. These MUST be encrypted with a DSC document-encryption certificate — compiling them in clear text is not a supported configuration. A MOF with clear-text passwords is a credential-theft primitive: anyone who can read the file on the authoring host, the pull server, or the SMB share gets domain service-account passwords.
The kit ships everything needed and the workflow makes it mandatory:
-
Generate the certificate with
scripts/init/Initialize-DscEncryption.ps1. It exports the.cer/.pfxto the share and patches everyCfg*.psd1so the wildcard node carriesPSDscAllowPlainTextPassword = $falseplus theCertificateFile/Thumbprintpointing at the encryption cert. -
Import the
.pfxintoCert:\LocalMachine\Myon every target node (handled byscripts/init/Initialize-DscNode.ps1). -
Compile — the resulting MOFs carry CMS-encrypted credential blobs and a
ContentType="PasswordEncrypted"marker, decryptable only by the node holding the private key. -
Verify with the post-compile guard-rail, which fails if any credential slipped through in clear text:
.\scripts\test\Invoke-MofEncryptionTest.ps1 -MofPath .\scripts\sps\MOF
See the Securing Credentials wiki page for the full walkthrough, certificate rotation, and troubleshooting.
For detailed usage, configuration, and getting started information, visit the SPSConfigKit Wiki
A full list of changes in each version can be found in the change log