-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/PowerShell/SharePointDsc …
…into release-3.5
- Loading branch information
Showing
120 changed files
with
12,691 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
Modules/SharePointDsc/en-US/about_SPAccessServiceApp.help.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
.NAME | ||
SPAccessServiceApp | ||
|
||
# Description | ||
|
||
**Type:** Distributed | ||
**Requires CredSSP:** No | ||
|
||
This resource is responsible for creating Access Services Application instances | ||
within the local SharePoint farm. The resource will provision and configure the | ||
Access Services Service Application. | ||
|
||
The default value for the Ensure parameter is Present. When not specifying this | ||
parameter, the service application is provisioned. | ||
|
||
.PARAMETER Name | ||
Key - string | ||
The name of the service application | ||
|
||
.PARAMETER ApplicationPool | ||
Required - string | ||
The name of the application pool to run the service app in | ||
|
||
.PARAMETER DatabaseServer | ||
Required - string | ||
The name of the database server to host Access Services databases | ||
|
||
.PARAMETER Ensure | ||
Write - string | ||
Allowed values: Present, Absent | ||
Present ensures service app exists, absent ensures it is removed | ||
|
||
.PARAMETER InstallAccount | ||
Write - String | ||
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 | ||
|
||
|
||
.EXAMPLE | ||
This example shows how to deploy Access Services 2013 to the local SharePoint farm. | ||
|
||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$SetupAccount | ||
) | ||
Import-DscResource -ModuleName SharePointDsc | ||
|
||
node localhost { | ||
SPAccessServiceApp AccessServices | ||
{ | ||
Name = "Access Services Service Application" | ||
ApplicationPool = "SharePoint Service Applications" | ||
DatabaseServer = "SQL.contoso.local\SQLINSTANCE" | ||
PsDscRunAsCredential = $SetupAccount | ||
} | ||
} | ||
} | ||
|
||
|
||
.EXAMPLE | ||
|
||
This example shows how to remove a specific Access Services 2013 from the local | ||
SharePoint farm. Because Application pool and database server are both required | ||
parameters, but are not acutally needed to remove the app, any text value can | ||
be supplied for these as they will be ignored. | ||
|
||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$SetupAccount | ||
) | ||
Import-DscResource -ModuleName SharePointDsc | ||
|
||
node localhost { | ||
SPAccessServiceApp AccessServices | ||
{ | ||
Name = "Access Services Service Application" | ||
ApplicationPool = "n/a" | ||
DatabaseServer = "n/a" | ||
Ensure = "Absent" | ||
PsDscRunAsCredential = $SetupAccount | ||
} | ||
} | ||
} | ||
|
||
|
33 changes: 33 additions & 0 deletions
33
Modules/SharePointDsc/en-US/about_SPAccessServices2010.help.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.NAME | ||
SPAccessServices2010 | ||
|
||
# Description | ||
|
||
**Type:** Distributed | ||
**Requires CredSSP:** No | ||
|
||
This resource is responsible for creating Access Services 2010 Application | ||
instances within the local SharePoint farm. The resource will provision and | ||
configure the Access Services 2010 Service Application. | ||
|
||
The default value for the Ensure parameter is Present. When not specifying this | ||
parameter, the service application is provisioned. | ||
|
||
.PARAMETER Name | ||
Key - String | ||
The name of the service application | ||
|
||
.PARAMETER ApplicationPool | ||
Required - String | ||
The name of the application pool to run the service app in | ||
|
||
.PARAMETER Ensure | ||
Write - String | ||
Allowed values: Present, Absent | ||
Present ensures service app exists, absent ensures it is removed | ||
|
||
.PARAMETER InstallAccount | ||
Write - String | ||
POWERSHELL 4 ONLY: The account to run thsi resource as, use PsDscRunAsCredential if using PowerShell 5 | ||
|
||
|
118 changes: 118 additions & 0 deletions
118
Modules/SharePointDsc/en-US/about_SPAlternateUrl.help.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
.NAME | ||
SPAlternateUrl | ||
|
||
# Description | ||
|
||
**Type:** Distributed | ||
**Requires CredSSP:** No | ||
|
||
This resource is used to define an alternate access mapping URL for a specified | ||
web application. These can be assigned to specific zones for each web | ||
application. Alternatively a URL can be removed from a zone to ensure that it | ||
will remain empty and have no alternate URL. | ||
|
||
The default value for the Ensure parameter is Present. When not specifying this | ||
parameter, the setting is configured. | ||
|
||
## Central Administration | ||
|
||
To select the Central Administration site, use the following command to retrieve | ||
the correct web application name: | ||
(Get-SPWebApplication -IncludeCentralAdministration | Where-Object { | ||
$_.IsAdministrationWebApplication | ||
}).DisplayName | ||
|
||
To update the existing Default Zone AAM for Central Administration (e.g. to | ||
implement HTTPS), use the above command to retrieve the web application name | ||
(by default, it will be "SharePoint Central Administration v4") and specify | ||
"Default" as the Zone. If you wish to add AAM's instead, you may use the other | ||
zones to do so. | ||
|
||
Using SPAlternateUrl to update the Default Zone AAM for Central Administration | ||
will update the AAM in SharePoint as well as the CentralAdministrationUrl value | ||
in the registry. It will not, however, update bindings in IIS. It is recommended | ||
to use the xWebsite resource from the xWebAdministration module to configure the | ||
appropriate bindings in IIS. | ||
|
||
.PARAMETER WebAppName | ||
Key - String | ||
The name of the web application to apply the alternate URL to | ||
|
||
.PARAMETER Zone | ||
Key - String | ||
Allowed values: Default, Intranet, Extranet, Custom, Internet | ||
The Zone to use for the alternate URL | ||
|
||
.PARAMETER Url | ||
Key - String | ||
The new alternate URL | ||
|
||
.PARAMETER Internal | ||
Write - Boolean | ||
Specifies if the URL has to be configured as internal | ||
|
||
.PARAMETER Ensure | ||
Write - string | ||
Allowed values: Present, Absent | ||
Present ensures the URL is set for this zone on this web app, Absent ensures it is removed | ||
|
||
.PARAMETER InstallAccount | ||
Write - String | ||
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 | ||
|
||
|
||
.EXAMPLE | ||
This example shows how to add a new alternate URL to a specific web application | ||
|
||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$SetupAccount | ||
) | ||
Import-DscResource -ModuleName SharePointDsc | ||
|
||
node localhost { | ||
SPAlternateUrl CentralAdminAAM | ||
{ | ||
WebAppName = "SharePoint - www.domain.com80" | ||
Zone = "Intranet" | ||
Url = "https://admin.sharepoint.contoso.com" | ||
Internal = $false | ||
Ensure = "Present" | ||
PsDscRunAsCredential = $SetupAccount | ||
} | ||
} | ||
} | ||
|
||
|
||
.EXAMPLE | ||
This example shows how to remove an alternate URL from a specified zone for a specific | ||
web application. | ||
|
||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$SetupAccount | ||
) | ||
Import-DscResource -ModuleName SharePointDsc | ||
|
||
node localhost { | ||
SPAlternateUrl CentralAdminAAM | ||
{ | ||
WebAppName = "SharePoint - www.domain.com80" | ||
Zone = "Intranet" | ||
Url = "http://www.externaldomain.com" | ||
Internal = $false | ||
Ensure = "Absent" | ||
PsDscRunAsCredential = $SetupAccount | ||
} | ||
} | ||
} | ||
|
||
|
74 changes: 74 additions & 0 deletions
74
Modules/SharePointDsc/en-US/about_SPAntivirusSettings.help.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
.NAME | ||
SPAntivirusSettings | ||
|
||
# Description | ||
|
||
**Type:** Distributed | ||
**Requires CredSSP:** No | ||
|
||
This resource is used to set the global antivirus settings for the local farm. | ||
These settings will be used to control the behavior of an external anti-virus | ||
scanning tool that is able to integrate with SharePoint. Note that this will | ||
not scan documents for viruses on it's own, an external tool still needs to be | ||
installed on the servers that integrates with SharePoint. | ||
|
||
.PARAMETER IsSingleInstance | ||
Key - String | ||
Allowed values: Yes | ||
Specifies the resource is a single instance, the value must be 'Yes' | ||
|
||
.PARAMETER ScanOnDownload | ||
Write - Boolean | ||
Should documents be scanned before being downloaded | ||
|
||
.PARAMETER ScanOnUpload | ||
Write - Boolean | ||
Should documents be scanned on upload | ||
|
||
.PARAMETER AllowDownloadInfected | ||
Write - Boolean | ||
Should documents that are infected be allowed to be downloaded | ||
|
||
.PARAMETER AttemptToClean | ||
Write - Boolean | ||
Should infected documents be handed to the AV engine to attempt cleaning | ||
|
||
.PARAMETER TimeoutDuration | ||
Write - Uint16 | ||
What is the timeout for an AV scan in seconds | ||
|
||
.PARAMETER NumberOfThreads | ||
Write - Uint16 | ||
How many concurrent threads should the AV engine be able to run on a server | ||
|
||
.PARAMETER InstallAccount | ||
Write - String | ||
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 | ||
|
||
|
||
.EXAMPLE | ||
This example shows how to apply specific anti-virus configuration to the farm | ||
|
||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$SetupAccount | ||
) | ||
Import-DscResource -ModuleName SharePointDsc | ||
|
||
node localhost { | ||
SPAntivirusSettings AVSettings | ||
{ | ||
IsSingleInstance = "Yes" | ||
ScanOnDownload = $true | ||
ScanOnUpload = $true | ||
AllowDownloadInfected = $false | ||
AttemptToClean = $false | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.NAME | ||
SPAppCatalog | ||
|
||
# Description | ||
|
||
**Type:** Distributed | ||
**Requires CredSSP:** Yes | ||
|
||
This resource will ensure that a specific site collection is marked as the app | ||
catalog for the web application that the site is in. The catalog site needs to | ||
have been created using the correct template (APPCATALOG#0). | ||
|
||
This resource should NOT be run using the farm account. The resource will | ||
retrieve the farm credentials from SharePoint and use that to update the | ||
AppCatalog. This does mean it requires CredSSP to be setup! | ||
|
||
.PARAMETER SiteUrl | ||
Key - string | ||
The URL of the site collection that will be the app catalog for the web app that it is in | ||
|
||
.PARAMETER InstallAccount | ||
Write - String | ||
POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 | ||
|
||
|
||
.EXAMPLE | ||
This example shows how to configure the AppCatalog in the farm | ||
|
||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$SetupAccount | ||
) | ||
Import-DscResource -ModuleName SharePointDsc | ||
|
||
node localhost { | ||
SPAppCatalog MainAppCatalog | ||
{ | ||
SiteUrl = "https://content.sharepoint.contoso.com/sites/AppCatalog" | ||
PsDscRunAsCredential = $SetupAccount | ||
} | ||
} | ||
} | ||
|
||
|
Oops, something went wrong.