-
Notifications
You must be signed in to change notification settings - Fork 107
SPInstallLanguagePack
Brian Farnhill edited this page Dec 9, 2016
·
18 revisions
Parameters
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
BinaryDir | Key | String | The directory that contains all of the SharePoint binaries | |
BinaryInstallDays | Write | String | Specify on which dates the installation is allowed | mon, tue, wed, thu, fri, sat, sun |
BinaryInstallTime | Write | String | Specify in which time frame the installation is allowed | |
Ensure | Write | string | Present to install SharePoint. Absent is currently not supported | Present, Absent |
InstallAccount | Write | String | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 |
This resource is used to install the SharePoint Language Pack binaries. The BinaryDir parameter should point to the path that setup.exe is located (not to setup.exe itself). The BinaryInstallDays and BinaryInstallTime parameters specify a window in which the update can be installed. This module depends on
Examples
Example 1
This module will install the SharePoint Language Pack. The binaries for
SharePoint in this scenario are stored at C:\SPInstall (so it will look to run
C:\SPInstall\Setup.exe)
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPInstallLanguagePack InstallLPBinaries
{
BinaryDir = "C:\SPInstall"
Ensure = "Present"
}
}
}
Example 2
This module will install the SharePoint Language Pack in the specified timeframe.
The binaries for SharePoint in this scenario are stored at C:\SPInstall (so it
will look to run C:\SPInstall\Setup.exe)
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPInstallLanguagePack InstallLPBinaries
{
BinaryDir = "C:\SPInstall"
BinaryInstallDays = "sat", "sun"
BinaryInstallTime = "12:00am to 2:00am"
Ensure = "Present"
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations