xsharepoint
Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
- Puppet >= 6.0.0 < 8.0.0
Start using this module
Add this module to your Puppetfile:
mod 'dsc-xsharepoint', '0.12.0-0-0'
Learn more about managing modules with a PuppetfileDocumentation
xsharepoint
Table of Contents
Description
This is an auto-generated module, using the Puppet DSC Builder to vendor and expose the xSharePoint PowerShell module's DSC resources as Puppet resources. The functionality of this module comes entirely from the vendored PowerShell resources, which are pinned at v0.12.0.0. The PowerShell module describes itself like this:
This DSC module is used to deploy and configure SharePoint Server 2013, and convers a wide range of areas including web apps, service apps and farm configuration.
For information on troubleshooting to determine whether any encountered problems are with the Puppet wrapper or the DSC resource, see the troubleshooting section below.
Requirements
This module, like all auto-generated Puppetized DSC modules, relies on two important technologies in the Puppet stack: the Puppet Resource API and the puppetlabs/pwshlib Puppet module.
The Resource API provides a simplified option for writing types and providers and is responsible for how this module is structured. The Resource API ships inside of Puppet starting with version 6. While it is technically possible to add the Resource API functionality to Puppet 5.5.x, the DSC functionality has not been tested in this setup. For more information on the Resource API, review the documentation.
The module also depends on the pwshlib module. This Puppet module includes two important things: the ruby-pwsh library for running PowerShell code from ruby and the base provider for DSC resources, which this module leverages.
All of the actual work being done to call the DSC resources vendored with this module is in this file from the pwshlib module. This is important for troubleshooting and bug reporting, but doesn't impact your use of the module except that the end result will be that nothing works, as the dependency is not installed alongside this module!
Long File Path Support
Several PowerShell modules with DSC Resources end up with very long file paths once vendored, many of which exceed the 260 character limit for file paths. Luckily in Windows 10 (build 1607+), Windows Server 2016 (build 1607+), and Windows Server 2019 there is now an option for supporting long file paths transparently!
We strongly recommend enabling long file path support on any machines using this module to avoid path length issues.
You can set this value using the Puppet registry_value
resource:
registry_value { 'HKLM\System\CurrentControlSet\Control\FileSystem\LongPathsEnabled':
ensure => 'present',
data => [1],
provider => 'registry',
type => 'dword',
}
You can also set this value outside of Puppet by following the Microsoft documentation.
Usage
You can specify any of the DSC resources from this module like a normal Puppet resource in your manifests. The examples below use DSC resources from from the PowerShellGet repository, regardless of what module you're looking at here; the syntax, not the specifics, is what's important.
For reference documentation about the DSC resources exposed in this module, see the Reference Forge tab, or the REFERENCE.md file.
# Include a meaningful title for your resource declaration
dsc_psrepository { 'Add team module repo':
dsc_name => 'foo',
dsc_ensure => present,
# This location is nonsense, can be any valid folder on your
# machine or in a share, any location the SourceLocation param
# for the DSC resource will accept.
dsc_sourcelocation => 'C:\Program Files',
# You must always pass an enum fully lower-cased;
# Puppet is case sensitive even when PowerShell isn't
dsc_installationpolicy => untrusted,
}
dsc_psrepository { 'Trust public gallery':
dsc_name => 'PSGallery',
dsc_ensure => present,
dsc_installationpolicy => trusted,
}
dsc_psmodule { 'Make Ruby manageable via uru':
dsc_name => 'RubyInstaller',
dsc_ensure => present,
}
Credentials
Credentials are always specified as a hash of the username and password for the account. The password must use the Puppet Sensitive type; this ensures that logs and reports redact the password, displaying it instead as <Sensitive [value redacted]>.
dsc_psrepository { 'PowerShell Gallery':
dsc_name => 'psgAllery',
dsc_installationpolicy => 'Trusted',
dsc_psdscrunascredential => {
user => 'apple',
password => Sensitive('foobar'),
},
}
Class-Based Resources
Class-based DSC Resources can be used like any other DSC Resource in this module, with one important note:
Due to a bug in calling class-based DSC Resources by path instead of module name, each call to Invoke-DscResource
needs to temporarily munge the system-level environment variable for PSModulePath
;
the variable is reset prior to the end of each invocation.
CIM Instances
Because the CIM instances for DSC resources are fully mapped, the types actually explain fairly precisely what the shape of each CIM instance has to be - and, moreover, the type definition means that you get checking at catalog compile time. Puppet parses CIM instances are structured hashes (or arrays of structured hashes) that explicitly declare their keys and the valid types of values for each key.
So, for the dsc_accesscontrolentry
property of the dsc_ntfsaccessentry
type, which has a MOF type of NTFSAccessControlList[]
, Puppet defines the CIM instance as:
Array[Struct[{
accesscontrolentry => Array[Struct[{
accesscontroltype => Enum['Allow', 'Deny'],
inheritance => Enum['This folder only', 'This folder subfolders and files', 'This folder and subfolders', 'This folder and files', 'Subfolders and files only', 'Subfolders only', 'Files only'],
ensure => Enum['Present', 'Absent'],
cim_instance_type => 'NTFSAccessControlEntry',
filesystemrights => Array[Enum['AppendData', 'ChangePermissions', 'CreateDirectories', 'CreateFiles', 'Delete', 'DeleteSubdirectoriesAndFiles', 'ExecuteFile', 'FullControl', 'ListDirectory', 'Modify', 'Read', 'ReadAndExecute', 'ReadAttributes', 'ReadData', 'ReadExtendedAttributes', 'ReadPermissions', 'Synchronize', 'TakeOwnership', 'Traverse', 'Write', 'WriteAttributes', 'WriteData', 'WriteExtendedAttributes']]
}]],
forceprincipal => Optional[Boolean],
principal => Optional[String],
}]]
A valid example of that in a puppet manifest looks like this:
dsc_accesscontrollist => [
{
accesscontrolentry => [
{
accesscontroltype => 'Allow',
inheritance => 'This folder only',
ensure => 'Present',
filesystemrights => 'ChangePermissions',
cim_instance_type => 'NTFSAccessControlEntry',
},
],
principal => 'veryRealUserName',
},
]
For more information about using a built module, check out our narrative documentation.
Properties
Note that the only properties specified in a resource declaration which are passed to Invoke-Dsc are all prepended with dsc.
If a property does _not start with dsc_ it is used to control how Puppet interacts with DSC/other Puppet resources - for example,
specifying a unique name for the resource for Puppet to distinguish between declarations or Puppet metaparameters (notifies,
before, etc).
Validation Mode
By default, these resources use the property validation mode, which checks whether or not the resource is in the desired state the same way most Puppet resources are validated;
by comparing the properties returned from the system with those specified in the manifest.
Sometimes, however, this is insufficient;
many DSC Resources return data that does not compare properly to the desired state (some are missing properties, others are malformed, some simply cannot be strictly compared).
In these cases, you can set the validation mode to resource
, which falls back on calling Invoke-DscResource
with the Test
method and trusts that result.
When using the resource
validation mode, the resource is tested once and will then treat all properties of that resource as in sync (if the result returned true
) or not in sync.
This loses the granularity of change reporting for the resource but prevents flapping and unexpected behavior.
# This will flap because the DSC resource never returns name in SecurityPolicyDsc v2.10.0.0
dsc_securityoption { 'Enforce Anonoymous SID Translation':
dsc_name => 'Enforce Anonymous SID Translation',
dsc_network_access_allow_anonymous_sid_name_translation => 'Disabled',
}
# This will idempotently apply
dsc_psrepository { 'PowerShell Gallery':
validation_mode => 'resource',
dsc_name => 'Enforce Anonymous SID Translation',
dsc_network_access_allow_anonymous_sid_name_translation => 'Disabled',
}
It is important to note that this feature is only supported with a version of puppetlabs-pwshlib
equal to or higher than 0.9.0
, in which the supporting code for the DSC Base Provider to implement custom insync was shipped.
Finally, while this module's metadata says that the supported Puppet versions are 6.0.0 and up, the implementation of the validation_mode
parameter relies on the custom_insync
feature of the Puppet Resource API.
The custom_insync
feature first shipped in the puppet-resource_api
version 1.8.14
, which itself is only included in Puppet versions equal to or newer than 6.23.0
and 7.8.0
for the 6x and 7x platforms respectively.
Using this module against older Puppet versions will result in a warning (example below) and only use the default property-by-property change reporting, regardless of the setting of validation_mode
.
Warning: Unknown feature detected: ["custom_insync"]
Troubleshooting
In general, there are three broad categories of problems:
- Problems with the way the underlying DSC resource works.
- Problems with the type definition, where you can't specify a valid set of properties for the DSC resource
- Problems with calling the underlying DSC resource - the parameters aren't being passed correctly or the resource can't be found
Unfortunately, problems with the way the underlying DSC resource works are something we can't help directly with. You'll need to file an issue with the upstream maintainers for the PowerShell module.
Problems with the type definition are when a value that should be valid according to the DSC resource's documentation and code is not accepted by the Puppet wrapper. If and when you run across one of these, please file an issue with the Puppet DSC Builder; this is where the conversion happens and once we know of a problem we can fix it and regenerate the Puppet modules. To help us identify the issue, please specify the DSC module, version, resource, property and values that are giving you issues. Once a fix is available we will regenerate and release updated versions of this Puppet wrapper.
Problems with calling the underlying DSC resource become apparent by comparing <value passed in in puppet>
with <value received by DSC>
.
In this case, please file an issue with the puppetlabs/pwshlib module, which is where the DSC base provider actually lives.
We'll investigate and prioritize a fix and update the puppetlabs/pwshlib module.
Updating to the pwshlib version with the fix will immediately take advantage of the improved functionality without waiting for this module to be reconverted and published.
For specific information on troubleshooting a generated module, check the troubleshooting guide for the puppet.dsc module.
Known Limitations
Currently, because of the way Puppet caches files on agents, use of the legacy puppetlabs-dsc
module is not compatible with this or any auto-generated DSC module.
Inclusion of both will lead to pluginsync conflicts.
Right now, if you have the same version of a PowerShell module with class-based DSC Resources in your PSModulePath as vendored in a Puppetized DSC Module, you cannot use those class-based DSC Resources from inside of Puppet due to a bug in DSC which prevents using a module by path reference instead of name. Instead, DSC will see that there are two DSC Resources for the same module and version and then error out.
Configuring the LCM
In order for a Puppetized DSC module to function, the DSC Local Configuration Manager (LCM) RefreshMode
must be set to either Push
or Disabled
.
The default value for RefreshMode
in WMF 5.0 and WMF 5.1 is Push
- so if it has not been set to anything else then there is no action needed on your part.
However if the value of the LCM has been set to anything other than Push
then the module will not function and so the value must either be changed back or disabled.
The Puppetized DSC modules use the Invoke-DscResource
cmdlet to invoke DSC Resources of the target machine.
If the RefreshMode
is set to Pull
, DSC Resources will only run from a DSC Pull Server - in this setting DSC does not allow any DSC Resources to be run interactively on the host.
Module Installation
If you're using this module with Puppet Enterprise and Code Manager, everything should "just work" - no errors or issues acquiring and deploying this or any Puppetized DSC module to nodes.
Unfortunately, due a bug in minitar which prevents it from unpacking archives with long file paths, both r10k
and serverless Puppet (via puppet module install
) methods of installing modules with long path names will fail.
In short, minitar is unable to unpack modules that contain long file paths (though it can create them).
As a workaround, you can retrieve DSC modules from the forge via PowerShell and 7zip:
$ModuleAuthor = 'dsc'
$ModuleName = 'xremotedesktopsessionhost'
$ModuleVersion = '2.0.0-0-1'
$ArchiveFileName = "$ModuleAuthor-$ModuleName-$ModuleVersion.tar.gz"
$DownloadUri = "https://forge.puppet.com/v3/files/$ArchiveFileName"
# Download the module tar.gz to the current directory
Invoke-WebRequest -Uri $DownloadUri -OutFile ./$ArchiveFileName
# Use 7zip to extract the module to the current directory
& 7z x $ArchiveFileName -so | & 7z x -aoa -si -ttar
Reference
Table of Contents
Resource types
dsc_xspalternateurl
: The DSC xSPAlternateUrl resource type. Automatically generated from version 0.12.0.0dsc_xspantivirussettings
: The DSC xSPAntivirusSettings resource type. Automatically generated from version 0.12.0.0dsc_xspappcatalog
: The DSC xSPAppCatalog resource type. Automatically generated from version 0.12.0.0dsc_xspappdomain
: The DSC xSPAppDomain resource type. Automatically generated from version 0.12.0.0dsc_xspappmanagementserviceapp
: The DSC xSPAppManagementServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspbcsserviceapp
: The DSC xSPBCSServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspcacheaccounts
: The DSC xSPCacheAccounts resource type. Automatically generated from version 0.12.0.0dsc_xspcreatefarm
: The DSC xSPCreateFarm resource type. Automatically generated from version 0.12.0.0dsc_xspdatabaseaag
: The DSC xSPDatabaseAAG resource type. Automatically generated from version 0.12.0.0dsc_xspdesignersettings
: The DSC xSPDesignerSettings resource type. Automatically generated from version 0.12.0.0dsc_xspdiagnosticloggingsettings
: The DSC xSPDiagnosticLoggingSettings resource type. Automatically generated from version 0.12.0.0dsc_xspdistributedcacheservice
: The DSC xSPDistributedCacheService resource type. Automatically generated from version 0.12.0.0dsc_xspfarmadministrators
: The DSC xSPFarmAdministrators resource type. Automatically generated from version 0.12.0.0dsc_xspfarmsolution
: The DSC xSPFarmSolution resource type. Automatically generated from version 0.12.0.0dsc_xspfeature
: The DSC xSPFeature resource type. Automatically generated from version 0.12.0.0dsc_xsphealthanalyzerrulestate
: The DSC xSPHealthAnalyzerRuleState resource type. Automatically generated from version 0.12.0.0dsc_xspinstall
: The DSC xSPInstall resource type. Automatically generated from version 0.12.0.0dsc_xspinstallprereqs
: The DSC xSPInstallPrereqs resource type. Automatically generated from version 0.12.0.0dsc_xspjoinfarm
: The DSC xSPJoinFarm resource type. Automatically generated from version 0.12.0.0dsc_xspmanagedaccount
: The DSC xSPManagedAccount resource type. Automatically generated from version 0.12.0.0dsc_xspmanagedmetadataserviceapp
: The DSC xSPManagedMetaDataServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspmanagedpath
: The DSC xSPManagedPath resource type. Automatically generated from version 0.12.0.0dsc_xspoutgoingemailsettings
: The DSC xSPOutgoingEmailSettings resource type. Automatically generated from version 0.12.0.0dsc_xsppasswordchangesettings
: The DSC xSPPasswordChangeSettings resource type. Automatically generated from version 0.12.0.0dsc_xspquotatemplate
: The DSC xSPQuotaTemplate resource type. Automatically generated from version 0.12.0.0dsc_xspsearchindexpartition
: The DSC xSPSearchIndexPartition resource type. Automatically generated from version 0.12.0.0dsc_xspsearchserviceapp
: The DSC xSPSearchServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspsearchtopology
: The DSC xSPSearchTopology resource type. Automatically generated from version 0.12.0.0dsc_xspsecurestoreserviceapp
: The DSC xSPSecureStoreServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspserviceapppool
: The DSC xSPServiceAppPool resource type. Automatically generated from version 0.12.0.0dsc_xspserviceinstance
: The DSC xSPServiceInstance resource type. Automatically generated from version 0.12.0.0dsc_xspsessionstateservice
: The DSC xSPSessionStateService resource type. Automatically generated from version 0.12.0.0dsc_xspshelladmins
: The DSC xSPShellAdmins resource type. Automatically generated from version 0.12.0.0dsc_xspsite
: The DSC xSPSite resource type. Automatically generated from version 0.12.0.0dsc_xspstateserviceapp
: The DSC xSPStateServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspsubscriptionsettingsserviceapp
: The DSC xSPSubscriptionSettingsServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xsptimerjobstate
: The DSC xSPTimerJobState resource type. Automatically generated from version 0.12.0.0dsc_xspusageapplication
: The DSC xSPUsageApplication resource type. Automatically generated from version 0.12.0.0dsc_xspuserprofileproperty
: The DSC xSPUserProfileProperty resource type. Automatically generated from version 0.12.0.0dsc_xspuserprofileserviceapp
: The DSC xSPUserProfileServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspuserprofilesyncconnection
: The DSC xSPUserProfileSyncConnection resource type. Automatically generated from version 0.12.0.0dsc_xspuserprofilesyncservice
: The DSC xSPUserProfileSyncService resource type. Automatically generated from version 0.12.0.0dsc_xspvisioserviceapp
: The DSC xSPVisioServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspwebappblockedfiletypes
: The DSC xSPWebAppBlockedFileTypes resource type. Automatically generated from version 0.12.0.0dsc_xspwebappgeneralsettings
: The DSC xSPWebAppGeneralSettings resource type. Automatically generated from version 0.12.0.0dsc_xspwebapplication
: The DSC xSPWebApplication resource type. Automatically generated from version 0.12.0.0dsc_xspwebapplicationappdomain
: The DSC xSPWebApplicationAppDomain resource type. Automatically generated from version 0.12.0.0dsc_xspwebapppolicy
: The DSC xSPWebAppPolicy resource type. Automatically generated from version 0.12.0.0dsc_xspwebappsiteuseanddeletion
: The DSC xSPWebAppSiteUseAndDeletion resource type. Automatically generated from version 0.12.0.0dsc_xspwebappthrottlingsettings
: The DSC xSPWebAppThrottlingSettings resource type. Automatically generated from version 0.12.0.0dsc_xspwebappworkflowsettings
: The DSC xSPWebAppWorkflowSettings resource type. Automatically generated from version 0.12.0.0dsc_xspwordautomationserviceapp
: The DSC xSPWordAutomationServiceApp resource type. Automatically generated from version 0.12.0.0dsc_xspworkmanagementserviceapp
: The DSC xSPWorkManagementServiceApp resource type. Automatically generated from version 0.12.0.0
Resource types
dsc_xspalternateurl
The DSC xSPAlternateUrl resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspalternateurl
type.
dsc_ensure
Data type: Enum['Present', 'Absent']
Present ensures the URL is set for this zone on this web app, Absent ensures it is removed
dsc_url
Data type: Optional[String]
The new alternate URL
Parameters
The following parameters are available in the dsc_xspalternateurl
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_webappurl
namevar
Data type: String
The URL of the web application to apply the alternate URL to
dsc_zone
namevar
Data type: Enum['Default', 'Intranet', 'Extranet', 'Custom', 'Internet']
The Zone to use for the alternate URL
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspantivirussettings
The DSC xSPAntivirusSettings resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspantivirussettings
type.
dsc_allowdownloadinfected
Data type: Optional[Boolean]
Should documents that are infected be allowed to be downloaded
dsc_attempttoclean
Data type: Optional[Boolean]
Should infected documents be handed to the AV engine to attempt cleaning
dsc_numberofthreads
Data type: Optional[Integer[0, 65535]]
How many concurrent threads should the AV engine be able to run on a server
dsc_scanonupload
Data type: Optional[Boolean]
Should documents be scanned on upload
dsc_timeoutduration
Data type: Optional[Integer[0, 65535]]
What is the timeout for an AV scan in seconds
Parameters
The following parameters are available in the dsc_xspantivirussettings
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_scanondownload
namevar
Data type: Boolean
Should documents be scanned before being downloaded
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspappcatalog
The DSC xSPAppCatalog resource type. Automatically generated from version 0.12.0.0
Parameters
The following parameters are available in the dsc_xspappcatalog
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_siteurl
namevar
Data type: String
The URL of the site collection that will be the app catalog for the web app that it is in
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspappdomain
The DSC xSPAppDomain resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspappdomain
type.
dsc_prefix
Data type: String
The prefix to go on to app URLs
Parameters
The following parameters are available in the dsc_xspappdomain
type.
dsc_appdomain
namevar
Data type: String
The domain name for apps to use in this farm
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspappmanagementserviceapp
The DSC xSPAppManagementServiceApp resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspappmanagementserviceapp
type.
dsc_applicationpool
Data type: String
The app pool that should be used to run the service app
dsc_databasename
Data type: Optional[String]
The name of the database for the service application
dsc_databaseserver
Data type: Optional[String]
The name of the server for the database
Parameters
The following parameters are available in the dsc_xspappmanagementserviceapp
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the app management service application
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspbcsserviceapp
The DSC xSPBCSServiceApp resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspbcsserviceapp
type.
dsc_applicationpool
Data type: String
The application pool it should run in
dsc_databasename
Data type: Optional[String]
Name of the database to create for the service app
dsc_databaseserver
Data type: Optional[String]
Name of the database server to host the database on
Parameters
The following parameters are available in the dsc_xspbcsserviceapp
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the BCS service app
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspcacheaccounts
The DSC xSPCacheAccounts resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspcacheaccounts
type.
dsc_superreaderalias
Data type: String
The account name fo the super reader
dsc_superuseralias
Data type: String
The account name for the super user
Parameters
The following parameters are available in the dsc_xspcacheaccounts
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_webappurl
namevar
Data type: String
The URL of the web application to set the accounts for
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspcreatefarm
The DSC xSPCreateFarm resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspcreatefarm
type.
dsc_admincontentdatabasename
Data type: String
The name of the admin content database
dsc_centraladministrationport
Data type: Optional[Integer[0, 4294967295]]
What port will Central Admin be provisioned to - default is 9999
dsc_passphrase
Data type: String
The passphrase to use to allow servers to join this farm
dsc_serverrole
Data type: Optional[Enum['Application', 'Custom', 'DistributedCache', 'Search', 'SingleServer', 'SingleServerFarm', 'SpecialLoad', 'WebFrontEnd']]
SharePoint 2016 only - the MinRole role to enroll this server as
Parameters
The following parameters are available in the dsc_xspcreatefarm
type.
dsc_databaseserver
dsc_farmaccount
dsc_farmconfigdatabasename
dsc_installaccount
dsc_psdscrunascredential
name
validation_mode
dsc_databaseserver
namevar
Data type: String
Server that will host the configuration and admin content databases
dsc_farmaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
The account to use as the main farm account
dsc_farmconfigdatabasename
namevar
Data type: String
Name of the configuration database
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspdatabaseaag
The DSC xSPDatabaseAAG resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspdatabaseaag
type.
dsc_agname
Data type: String
Name of the AlwaysOn group on the SQL server - this must already exist
dsc_ensure
Data type: Enum['Present', 'Absent']
Present if the database should be in this AlwaysOn group, or Absent if it should not be in the group
dsc_fileshare
Data type: Optional[String]
The fileshare to use for the SQL backup when adding to the group
Parameters
The following parameters are available in the dsc_xspdatabaseaag
type.
dsc_databasename
namevar
Data type: String
The name of the database to put in the AlwaysOn group
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspdesignersettings
The DSC xSPDesignerSettings resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspdesignersettings
type.
dsc_allowcreatedeclarativeworkflow
Data type: Optional[Boolean]
Allow users to create declarative workflows with SharePoint Designer
dsc_allowcustomisemasterpage
Data type: Optional[Boolean]
Allow masterpages to be changed by SharePoint Designer
dsc_allowdetachpagesfromdefinition
Data type: Optional[Boolean]
Allow pages to be un-ghosted by SharePoint Designer
dsc_allowmanagesiteurlstructure
Data type: Optional[Boolean]
Allow site URL structure to be changed by SharePoint Designer
dsc_allowsavedeclarativeworkflowastemplate
Data type: Optional[Boolean]
Allow users to save declarative workflows as a template from SharePoint Designer
dsc_allowsavepublishdeclarativeworkflow
Data type: Optional[Boolean]
Allow users to save and re-publish declarative workflows with SharePoint Designer
dsc_allowsharepointdesigner
Data type: Optional[Boolean]
Allow the use of SharePoint Designer
dsc_settingsscope
Data type: Enum['WebApplication', 'SiteCollection']
Define the scope of the configuration - either WebApplication or SiteCollection
Parameters
The following parameters are available in the dsc_xspdesignersettings
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_url
namevar
Data type: String
The URL of the web application or site collection to configure
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspdiagnosticloggingsettings
The DSC xSPDiagnosticLoggingSettings resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspdiagnosticloggingsettings
type.
dsc_appanalyticsautomaticuploadenabled
Data type: Optional[Boolean]
Should app analytics automatically be uploaded
dsc_customerexperienceimprovementprogramenabled
Data type: Optional[Boolean]
Should the customer experience program be enabled in this farm
dsc_daystokeeplogs
Data type: Optional[Integer[0, 4294967295]]
How many days should ULS logs be kept for
dsc_downloaderrorreportingupdatesenabled
Data type: Optional[Boolean]
Should updates to error reporting tools be automatically downloaded
dsc_errorreportingautomaticuploadenabled
Data type: Optional[Boolean]
Should error reports be automatically uploaded
dsc_errorreportingenabled
Data type: Optional[Boolean]
Should reporting of errors be enabled
dsc_eventlogfloodprotectionenabled
Data type: Optional[Boolean]
Protect event logs with Event Log Flood Protection
dsc_eventlogfloodprotectionnotifyinterval
Data type: Optional[Integer[0, 4294967295]]
What interval should the event logs report a flood event
dsc_eventlogfloodprotectionquietperiod
Data type: Optional[Integer[0, 4294967295]]
What quiet period should reset the event log flood protection thresholds
dsc_eventlogfloodprotectionthreshold
Data type: Optional[Integer[0, 4294967295]]
What is the event log flood protection threshold
dsc_eventlogfloodprotectiontriggerperiod
Data type: Optional[Integer[0, 4294967295]]
What is the time period that will trigger event log flood protection
dsc_logcutinterval
Data type: Optional[Integer[0, 4294967295]]
How many minutes of activity will a ULS log file leep in an individual file
dsc_logmaxdiskspaceusageenabled
Data type: Optional[Boolean]
Will the maximum disk space setting be enabled
dsc_logspaceingb
Data type: Integer[0, 4294967295]
The space in GB that should be used to store ULS logs
dsc_scripterrorreportingdelay
Data type: Optional[Integer[0, 4294967295]]
What delay will be set before script error reporting is triggered
dsc_scripterrorreportingenabled
Data type: Optional[Boolean]
Is script error reporting enabled in this farm
dsc_scripterrorreportingrequireauth
Data type: Optional[Boolean]
Require users to be authenticated to allow script errors to be reported
Parameters
The following parameters are available in the dsc_xspdiagnosticloggingsettings
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_logpath
namevar
Data type: String
The physical path on each server to store ULS logs
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspdistributedcacheservice
The DSC xSPDistributedCacheService resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspdistributedcacheservice
type.
dsc_cachesizeinmb
Data type: Integer[0, 4294967295]
How many MB should be used for the cache. The maximum supported is 16384
dsc_createfirewallrules
Data type: Boolean
Should the Windows Firewall rules for distributed cache be created?
dsc_ensure
Data type: Enum['Present', 'Absent']
Present to ensure the current server should be running distributed cache, absent to ensure that it isn't running
dsc_serverprovisionorder
Data type: Optional[Array[String]]
A list of servers which specifies the order they should provision the cache in to ensure that two servers do not do it at the same time
dsc_serviceaccount
Data type: String
The name of the service account to run the service as. This should already be registered as a managed account in SharePoint
Parameters
The following parameters are available in the dsc_xspdistributedcacheservice
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
A name to assign to this resource - not really used. For example - AppFabricCachingService
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspfarmadministrators
The DSC xSPFarmAdministrators resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspfarmadministrators
type.
dsc_members
Data type: Optional[Array[String]]
A list of members to set the group to. Those not in this list will be removed
dsc_memberstoexclude
Data type: Optional[Array[String]]
A list of members to remove. Members not in this list will be left in the group
dsc_memberstoinclude
Data type: Optional[Array[String]]
A list of members to add. Members not in this list will be left in the group
Parameters
The following parameters are available in the dsc_xspfarmadministrators
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
A generic name for this resource, its value is not important
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspfarmsolution
The DSC xSPFarmSolution resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspfarmsolution
type.
dsc_deployed
Data type: Optional[Boolean]
Should the solution be deployed to the farm, or just installed to the farm
dsc_ensure
Data type: Optional[String]
Present if the WSP should be deployed, or Absent if it should be removed
dsc_literalpath
Data type: String
The full path to the WSP file
dsc_version
Data type: Optional[String]
The version of the package that is being modified
dsc_webapplications
Data type: Optional[Array[String]]
A list of the web applications to deploy this to
Parameters
The following parameters are available in the dsc_xspfarmsolution
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The filename of the WSP package
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspfeature
The DSC xSPFeature resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspfeature
type.
dsc_ensure
Data type: Enum['Present', 'Absent']
Present if the feature is to be enabled, Absent if it is to be disabled
dsc_featurescope
Data type: Enum['Farm', 'WebApplication', 'Site', 'Web']
The scope to change the feature at - Farm, WebApplication, SiteCollection or Site
dsc_version
Data type: Optional[String]
The version of the feature to check against
Parameters
The following parameters are available in the dsc_xspfeature
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the feature
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_url
namevar
Data type: String
The URL to change the feature at
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xsphealthanalyzerrulestate
The DSC xSPHealthAnalyzerRuleState resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xsphealthanalyzerrulestate
type.
dsc_enabled
Data type: Boolean
Should the rule be enabled?
dsc_fixautomatically
Data type: Optional[Boolean]
Should the rule fix itself automatically
dsc_rulescope
Data type: Optional[Enum['All Servers', 'Any Server']]
What is the scope of this rule
dsc_schedule
Data type: Optional[Enum['Hourly', 'Daily', 'Weekly', 'Monthly', 'OnDemandOnly']]
How often should the rule check
Parameters
The following parameters are available in the dsc_xsphealthanalyzerrulestate
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the rule exactly as it appears in central admin
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspinstall
The DSC xSPInstall resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspinstall
type.
dsc_ensure
Data type: Enum['Present', 'Absent']
Present to install SharePoint. Absent is currently not supported
dsc_productkey
Data type: String
The product key to use during the installation
Parameters
The following parameters are available in the dsc_xspinstall
type.
dsc_binarydir
namevar
Data type: String
The directory that contains all of the SharePoint binaries
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspinstallprereqs
The DSC xSPInstallPrereqs resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspinstallprereqs
type.
dsc_appfabric
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_dotnet452
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_ensure
Data type: Enum['Present', 'Absent']
Present to install the prerequisites. Absent is currently not supported
dsc_idfx
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_idfx11
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_kb2671763
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_kb2898850
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_kb3092423
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_msipcclient
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_msvcrt11
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_msvcrt14
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_netfx
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_odbc
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_onlinemode
Data type: Boolean
Should the installer download prerequisites from the internet or not
dsc_powershell
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_sqlncli
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_sync
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_wcfdataservices
Data type: Optional[String]
The path to the installer for this prerequisite
dsc_wcfdataservices56
Data type: Optional[String]
The path to the installer for this prerequisite
Parameters
The following parameters are available in the dsc_xspinstallprereqs
type.
dsc_installerpath
namevar
Data type: String
The full path to prerequisiteinstaller.exe
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspjoinfarm
The DSC xSPJoinFarm resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspjoinfarm
type.
dsc_passphrase
Data type: String
The passphrase that should be used to join the farm
dsc_serverrole
Data type: Optional[Enum['Application', 'Custom', 'DistributedCache', 'Search', 'SingleServer', 'SingleServerFarm', 'SpecialLoad', 'WebFrontEnd']]
SharePoint 2016 only - the MinRole role to enroll this server as
Parameters
The following parameters are available in the dsc_xspjoinfarm
type.
dsc_databaseserver
dsc_farmconfigdatabasename
dsc_installaccount
dsc_psdscrunascredential
name
validation_mode
dsc_databaseserver
namevar
Data type: String
The server that hosts the config database
dsc_farmconfigdatabasename
namevar
Data type: String
The name of the config database to connect to
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspmanagedaccount
The DSC xSPManagedAccount resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspmanagedaccount
type.
dsc_emailnotification
Data type: Optional[Integer[0, 4294967295]]
How many days before a password change should an email be sent
dsc_preexpiredays
Data type: Optional[Integer[0, 4294967295]]
How many days before a password expires should it be changed
dsc_schedule
Data type: Optional[String]
What is the schedule for the password reset
Parameters
The following parameters are available in the dsc_xspmanagedaccount
type.
dsc_account
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
The credential with password of the account
dsc_accountname
namevar
Data type: String
The username of the account
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspmanagedmetadataserviceapp
The DSC xSPManagedMetaDataServiceApp resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspmanagedmetadataserviceapp
type.
dsc_applicationpool
Data type: String
The application pool that the service app will use
dsc_databasename
Data type: Optional[String]
The name of the database for the service application
dsc_databaseserver
Data type: Optional[String]
The name of the database server which will host the application
Parameters
The following parameters are available in the dsc_xspmanagedmetadataserviceapp
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the managed metadata service application
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspmanagedpath
The DSC xSPManagedPath resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspmanagedpath
type.
dsc_explicit
Data type: Boolean
Should the host header be explicit? If false then it is a wildcard
dsc_hostheader
Data type: Boolean
Is this a host header web application?
Parameters
The following parameters are available in the dsc_xspmanagedpath
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_relativeurl
namevar
Data type: String
The relative URL of the managed path
dsc_webappurl
namevar
Data type: String
The URL of the web application to apply the managed path to - this is ignored for host header web applications
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspoutgoingemailsettings
The DSC xSPOutgoingEmailSettings resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspoutgoingemailsettings
type.
dsc_characterset
Data type: String
The character set to use on messages
dsc_fromaddress
Data type: String
The from address to put on messages
dsc_replytoaddress
Data type: String
The email address that replies should be directed to
dsc_smtpserver
Data type: String
The SMTP server for outgoing mail
Parameters
The following parameters are available in the dsc_xspoutgoingemailsettings
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_webappurl
namevar
Data type: String
The URL of the web application. If you want to set the global settings use the Central Admin URL
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xsppasswordchangesettings
The DSC xSPPasswordChangeSettings resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xsppasswordchangesettings
type.
dsc_daysbeforeexpiry
Data type: Optional[Integer[0, 4294967295]]
The number of days before password expiry to send send emails
dsc_numberofretries
Data type: Optional[Integer[0, 4294967295]]
How many retries if the password change fails
dsc_passwordchangewaittimeseconds
Data type: Optional[Integer[0, 4294967295]]
The duration that a password reset will wait for before it times out
Parameters
The following parameters are available in the dsc_xsppasswordchangesettings
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_mailaddress
namevar
Data type: String
The email address to send notifications of password changes to
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspquotatemplate
The DSC xSPQuotaTemplate resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspquotatemplate
type.
dsc_ensure
Data type: Enum['Present', 'Absent']
Present to create this template, absent to ensure it does not exist
dsc_maximumusagepointssolutions
Data type: Optional[Integer[0, 4294967295]]
The maximum number of performance points for sandbox solutions for this template
dsc_storagemaxinmb
Data type: Optional[Integer[0, 4294967295]]
The maximum storage for sites of this template in MB
dsc_storagewarninginmb
Data type: Optional[Integer[0, 4294967295]]
The amount of storage for sites of this template that triggers a warning
dsc_warningusagepointssolutions
Data type: Optional[Integer[0, 4294967295]]
The warning number of performance points for sandbox solutions for this template
Parameters
The following parameters are available in the dsc_xspquotatemplate
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the quota template
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspsearchindexpartition
The DSC xSPSearchIndexPartition resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspsearchindexpartition
type.
dsc_rootdirectory
Data type: Optional[String]
The directory that the index should use locally on each server to store data
dsc_servers
Data type: Array[String]
A list of the servers that this partition should exist on
dsc_serviceappname
Data type: String
The name of the search service application
Parameters
The following parameters are available in the dsc_xspsearchindexpartition
type.
dsc_index
namevar
Data type: Integer[0, 4294967295]
The number of the partition in this farm
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspsearchserviceapp
The DSC xSPSearchServiceApp resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspsearchserviceapp
type.
dsc_applicationpool
Data type: String
The application pool that it should run in
dsc_databasename
Data type: Optional[String]
The name of the database (noting that some search databases will use this as a prefix)
dsc_databaseserver
Data type: Optional[String]
The server that host the databases for this service application
Parameters
The following parameters are available in the dsc_xspsearchserviceapp
type.
dsc_defaultcontentaccessaccount
dsc_installaccount
dsc_name
dsc_psdscrunascredential
name
validation_mode
dsc_defaultcontentaccessaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
The default content access account for this search service app
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the search service application
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspsearchtopology
The DSC xSPSearchTopology resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspsearchtopology
type.
dsc_admin
Data type: Array[String]
A list of servers that will run the admin component
dsc_analyticsprocessing
Data type: Array[String]
A list of servers that will run the analytics processing component
dsc_contentprocessing
Data type: Array[String]
A list of servers that will run the content processing component
dsc_crawler
Data type: Array[String]
A list of servers that will run the crawler component
dsc_firstpartitiondirectory
Data type: String
The local directory servers will use to store the first index partition
dsc_indexpartition
Data type: Array[String]
A list of servers that will host the first (0) index partition
dsc_queryprocessing
Data type: Array[String]
A list of servers that will run the query processing component
Parameters
The following parameters are available in the dsc_xspsearchtopology
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_serviceappname
namevar
Data type: String
The name of the search service application for this topology
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspsecurestoreserviceapp
The DSC xSPSecureStoreServiceApp resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspsecurestoreserviceapp
type.
dsc_applicationpool
Data type: String
The name of the application pool it will run in
dsc_auditingenabled
Data type: Boolean
Is auditing enabled for this service app
dsc_auditlogmaxsize
Data type: Optional[Integer[0, 4294967295]]
What is the maximum size of the audit log in MB
dsc_databaseauthenticationtype
Data type: Optional[Enum['Windows', 'SQL']]
What type of authentication should be used to access the database
dsc_databasename
Data type: Optional[String]
The name of the database for the service app
dsc_databaseserver
Data type: Optional[String]
The name of the database server to host the database
dsc_failoverdatabaseserver
Data type: Optional[String]
The name of the database server hosting a failover instance of the database
dsc_partitionmode
Data type: Optional[Boolean]
Is partition mode enabled for this service app
dsc_sharing
Data type: Optional[Boolean]
Is sharing enabled for this service app
Parameters
The following parameters are available in the dsc_xspsecurestoreserviceapp
type.
dsc_databasecredentials
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
What SQL credentials should be used to access the database
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the secure store service app
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspserviceapppool
The DSC xSPServiceAppPool resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspserviceapppool
type.
dsc_serviceaccount
Data type: String
The name of the managed account to run this service account as
Parameters
The following parameters are available in the dsc_xspserviceapppool
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of application pool
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspserviceinstance
The DSC xSPServiceInstance resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspserviceinstance
type.
dsc_ensure
Data type: Enum['Present', 'Absent']
Present to ensure it runs on this server, or absent to ensure it is stopped
Parameters
The following parameters are available in the dsc_xspserviceinstance
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the service instance to manage
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspsessionstateservice
The DSC xSPSessionStateService resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspsessionstateservice
type.
dsc_enabled
Data type: Boolean
Is the state service enabled
dsc_sessiontimeout
Data type: Optional[Integer[0, 4294967295]]
What is the timeout on sessions
Parameters
The following parameters are available in the dsc_xspsessionstateservice
type.
dsc_databasename
dsc_databaseserver
dsc_installaccount
dsc_psdscrunascredential
name
validation_mode
dsc_databasename
namevar
Data type: String
The name of the database for the service
dsc_databaseserver
namevar
Data type: String
The name of the database server for the database
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspshelladmins
The DSC xSPShellAdmins resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspshelladmins
type.
dsc_allcontentdatabases
Data type: Optional[Boolean]
Specify if all content databases must get the same config as the general config
dsc_contentdatabases
Data type: Optional[Array[Struct[{ memberstoexclude => Optional[Array[String]], name => Optional[String], memberstoinclude => Optional[Array[String]], members => Optional[Array[String]], }]]]
Shell Admin configuration of Content Databases
dsc_members
Data type: Optional[Array[String]]
Exact list of accounts that will have to get Shell Admin permissions
dsc_memberstoexclude
Data type: Optional[Array[String]]
List of all accounts that are not allowed to have Shell Admin permissions
dsc_memberstoinclude
Data type: Optional[Array[String]]
List of all accounts that must be in the Shell Admins group
Parameters
The following parameters are available in the dsc_xspshelladmins
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
Name for the config, used for administration purposes
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspsite
The DSC xSPSite resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspsite
type.
dsc_compatibilitylevel
Data type: Optional[Integer[0, 4294967295]]
The compatibility level of the site
dsc_contentdatabase
Data type: Optional[String]
The name of the content database to create the site in
dsc_description
Data type: Optional[String]
The description to apply to the site collection
dsc_hostheaderwebapplication
Data type: Optional[String]
The URL of the host header web application to create this site in
dsc_language
Data type: Optional[Integer[0, 4294967295]]
The language code of the site
dsc_name
Data type: Optional[String]
The display name of the site collection
dsc_owneralias
Data type: String
The username of the site collection administrator
dsc_owneremail
Data type: Optional[String]
The email address of the site collection administrator
dsc_quotatemplate
Data type: Optional[String]
The quota template to apply to the site collection
dsc_secondaryemail
Data type: Optional[String]
The secondary site collection admin email address
dsc_secondaryowneralias
Data type: Optional[String]
The secondary site collection admin username
dsc_template
Data type: Optional[String]
The template to apply to the site collection
Parameters
The following parameters are available in the dsc_xspsite
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
dsc_url
namevar
Data type: String
The URL of the site collection
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspstateserviceapp
The DSC xSPStateServiceApp resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspstateserviceapp
type.
dsc_databasename
Data type: String
The name of the database for the service app
dsc_databaseserver
Data type: Optional[String]
The name of the database server
Parameters
The following parameters are available in the dsc_xspstateserviceapp
type.
dsc_databasecredentials
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
The database credentials for accessing the database
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the state service app
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspsubscriptionsettingsserviceapp
The DSC xSPSubscriptionSettingsServiceApp resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspsubscriptionsettingsserviceapp
type.
dsc_applicationpool
Data type: String
The name of the application pool the service app runs in
dsc_databasename
Data type: Optional[String]
The name of the database for the service app
dsc_databaseserver
Data type: Optional[String]
The name of the database server
Parameters
The following parameters are available in the dsc_xspsubscriptionsettingsserviceapp
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the subscription settings service app
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xsptimerjobstate
The DSC xSPTimerJobState resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xsptimerjobstate
type.
dsc_enabled
Data type: Optional[Boolean]
Should the timer job be enabled or not
dsc_schedule
Data type: Optional[String]
The schedule for the timer job to execute on
dsc_webapplication
Data type: Optional[String]
The name of the web application that the timer job belongs to
Parameters
The following parameters are available in the dsc_xsptimerjobstate
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The internal name of the timer job (not the display name)
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspusageapplication
The DSC xSPUsageApplication resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspusageapplication
type.
dsc_databasename
Data type: Optional[String]
The name of the database for the service app
dsc_databaseserver
Data type: Optional[String]
The name of the database server
dsc_failoverdatabaseserver
Data type: Optional[String]
The name of the failover database server
dsc_usagelogcuttime
Data type: Optional[Integer[0, 4294967295]]
The time in minutes to cut over to new log files
dsc_usageloglocation
Data type: Optional[String]
The location on each server to store the log files
dsc_usagelogmaxfilesizekb
Data type: Optional[Integer[0, 4294967295]]
The maximum file size for log files in KB
dsc_usagelogmaxspacegb
Data type: Optional[Integer[0, 4294967295]]
The total space of all log files on disk in GB
Parameters
The following parameters are available in the dsc_xspusageapplication
type.
dsc_databasecredentials
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
The credentials to use to access the database
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the service application
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspuserprofileproperty
The DSC xSPUserProfileProperty resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspuserprofileproperty
type.
dsc_description
Data type: Optional[String]
The description of the property
dsc_displayname
Data type: Optional[String]
The display name of the property
dsc_displayorder
Data type: Optional[Integer[0, 4294967295]]
The display order to put the property in to the list at
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Present if the property should exist, absent if it should be removed
dsc_isalias
Data type: Optional[Boolean]
Is this field an alias that can be used to refer to a user by
dsc_iseventlog
Data type: Optional[Boolean]
Is this field used for event logging
dsc_issearchable
Data type: Optional[Boolean]
Is this field able to be searched upon
dsc_isusereditable
Data type: Optional[Boolean]
Is this field able to be edited by a user, or only an administrator
dsc_isvisibleoneditor
Data type: Optional[Boolean]
Is this field visible when editing a users profile, or hidden from editing
dsc_isvisibleonviewer
Data type: Optional[Boolean]
Is this field visible when viewing a users profile
dsc_length
Data type: Optional[Integer[0, 4294967295]]
The length of the field
dsc_mappingconnectionname
Data type: Optional[String]
The name of the UPS connect to map this property to
dsc_mappingdirection
Data type: Optional[String]
The direction of the mapping, either Import or Export
dsc_mappingpropertyname
Data type: Optional[String]
The name of the property from the UPS connection to map to
dsc_policysetting
Data type: Optional[Enum['Mandatory', 'Optin', 'Optout', 'Disabled']]
The policy setting to apply to the property
dsc_privacysetting
Data type: Optional[Enum['Public', 'Contacts', 'Organization', 'Manager', 'Private']]
The privacy setting for the property
dsc_termgroup
Data type: Optional[String]
The name of the term store group that terms are in for this field
dsc_termset
Data type: Optional[String]
The name of the term set to allow values to be selected from
dsc_termstore
Data type: Optional[String]
The name of the term store to look up managed terms from
dsc_type
Data type: Optional[Enum['BigInteger', 'Binary', 'Boolean', 'Date', 'DateNoYear', 'DateTime', 'Email', 'Float', 'Guid', 'HTML', 'Integer', 'Person', 'String', 'StringMultiValue', 'TimeZone', 'URL']]
The type of the property
dsc_useroverrideprivacy
Data type: Optional[Boolean]
Can users override the default privacy policy
dsc_userprofileservice
Data type: String
The name of the user profile service application
Parameters
The following parameters are available in the dsc_xspuserprofileproperty
type.
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The internal name of the user profile property
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspuserprofileserviceapp
The DSC xSPUserProfileServiceApp resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspuserprofileserviceapp
type.
dsc_applicationpool
Data type: String
The name of the application pool to run the service app in
dsc_mysitehostlocation
Data type: Optional[String]
The URL of the my site host collection
dsc_profiledbname
Data type: Optional[String]
The name of the profile database
dsc_profiledbserver
Data type: Optional[String]
The name of the server to host the profile database
dsc_socialdbname
Data type: Optional[String]
The name of the social database
dsc_socialdbserver
Data type: Optional[String]
The name of the database server to host the social database
dsc_syncdbname
Data type: Optional[String]
The name of the sync database
dsc_syncdbserver
Data type: Optional[String]
The name of the database server to host the sync database
Parameters
The following parameters are available in the dsc_xspuserprofileserviceapp
type.
dsc_farmaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
The farm account to use when provisioning the app
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the user profile service
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspuserprofilesyncconnection
The DSC xSPUserProfileSyncConnection resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspuserprofilesyncconnection
type.
dsc_connectiontype
Data type: Optional[Enum['ActiveDirectory', 'BusinessDataCatalog']]
The type of the connection - currently only Active Directory is supported
dsc_excludedous
Data type: Optional[Array[String]]
A list of the OUs to ignore users from
dsc_forest
Data type: String
The name of the AD forest to read from
dsc_includedous
Data type: Array[String]
A listo f the OUs to import users from
dsc_server
Data type: Optional[String]
The specific AD server to connect to
dsc_userprofileservice
Data type: String
The name of the user profile service that this connection is attached to
dsc_usessl
Data type: Optional[Boolean]
Should SSL be used for the connection
Parameters
The following parameters are available in the dsc_xspuserprofilesyncconnection
type.
dsc_connectioncredentials
dsc_force
dsc_installaccount
dsc_name
dsc_psdscrunascredential
name
validation_mode
dsc_connectioncredentials
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
The credentials to connect to Active Directory with
dsc_force
Data type: Optional[Boolean]
Set to true to run the set method on every call to this resource
dsc_installaccount
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5
dsc_name
namevar
Data type: String
The name of the connection
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_xspuserprofilesyncservice
The DSC xSPUserProfileSyncService resource type. Automatically generated from version 0.12.0.0
Properties
The following properties are available in the dsc_xspuserprofilesyncservice
type.
dsc_ensure
Data type: Enum['Present', 'Absent']
Present to ensure the service is running, absent to ensure it is not
Parameters
The following parameters are available in the dsc_xspuserprofilesyncservice
type.
Dependencies
- puppetlabs/pwshlib (>= 0.9.0 < 2.0.0)