-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy path3-ADReplicationSiteLink_EnableOptions_Config.ps1
More file actions
40 lines (37 loc) · 1.28 KB
/
3-ADReplicationSiteLink_EnableOptions_Config.ps1
File metadata and controls
40 lines (37 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<#PSScriptInfo
.VERSION 1.0.1
.GUID c44c6907-d900-4cd8-b48a-2d39013a8bb9
.AUTHOR DSC Community
.COMPANYNAME DSC Community
.COPYRIGHT DSC Community contributors. All rights reserved.
.TAGS DSCConfiguration
.LICENSEURI https://github.com/dsccommunity/ActiveDirectoryDsc/blob/main/LICENSE
.PROJECTURI https://github.com/dsccommunity/ActiveDirectoryDsc
.ICONURI https://dsccommunity.org/images/DSC_Logo_300p.png
.RELEASENOTES
Updated author, copyright notice, and URLs.
#>
#Requires -Module ActiveDirectoryDsc
<#
.DESCRIPTION
This configuration will modify an existing AD Replication Site Link by enabling Replication Options.
#>
Configuration ADReplicationSiteLink_EnableOptions_Config
{
Import-DscResource -Module ActiveDirectoryDsc
Node localhost
{
ADReplicationSiteLink 'HQSiteLink'
{
Name = 'HQSiteLInk'
SitesIncluded = 'site1'
SitesExcluded = 'site2'
Cost = 100
ReplicationFrequencyInMinutes = 20
OptionChangeNotification = $true
OptionTwoWaySync = $true
OptionDisableCompression = $true
Ensure = 'Present'
}
}
}