-
Notifications
You must be signed in to change notification settings - Fork 141
ADReplicationSite
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Ensure | Write | String | Specifies if the Active Directory replication site should be present or absent. Default value is 'Present'. |
Present , Absent
|
Name | Key | String | Specifies the name of the Active Directory replication site. | |
RenameDefaultFirstSiteName | Write | Boolean | Specifies if the Default-First-Site-Name should be renamed if it exists. Default value is $false. | |
Description | Write | String | Specifies a description of the object. This parameter sets the value of the Description property for the object. The LDAP Display Name (ldapDisplayName) for this property is 'description'. |
The ADReplicationSite DSC resource will manage Replication Sites within Active Directory. Sites are used in Active Directory to either enable clients to discover network resources (published shares, domain controllers) close to the physical location of a client computer or to reduce network traffic over wide area network (WAN) links. Sites can also be used to optimize replication between domain controllers.
- Target machine must be running Windows Server 2008 R2 or later.
This configuration will create an Active Directory replication site called 'Seattle'.
Configuration ADReplicationSite_CreateADReplicationSite_Config
{
Import-DscResource -Module ActiveDirectoryDsc
Node localhost
{
ADReplicationSite 'SeattleSite'
{
Ensure = 'Present'
Name = 'Seattle'
}
}
}
This configuration will create an Active Directory replication site called 'Seattle'. If the 'Default-First-Site-Name' site exists, it will rename this site instead of create a new one.
Configuration ADReplicationSite_CreateADReplicationSiteRenameDefault_Config
{
Import-DscResource -Module ActiveDirectoryDsc
Node localhost
{
ADReplicationSite 'SeattleSite'
{
Ensure = 'Present'
Name = 'Seattle'
RenameDefaultFirstSiteName = $true
}
}
}
This configuration will remove the Active Directory replication site called 'Cupertino'.
Configuration ADReplicationSite_RemoveADReplicationSite_Config
{
Import-DscResource -Module ActiveDirectoryDsc
Node localhost
{
ADReplicationSite 'CupertinoSite'
{
Ensure = 'Absent'
Name = 'Cupertino'
}
}
}
- ADComputer
- ADDomain
- ADDomainController
- ADDomainControllerProperties
- ADDomainDefaultPasswordPolicy
- ADDomainFunctionalLevel
- ADDomainTrust
- ADFineGrainedPasswordPolicy
- ADForestFunctionalLevel
- ADForestProperties
- ADGroup
- ADKDSKey
- ADManagedServiceAccount
- ADObjectEnabledState
- ADObjectPermissionEntry
- ADOptionalFeature
- ADOrganizationalUnit
- ADReadOnlyDomainControllerAccount
- ADReplicationSite
- ADReplicationSiteLink
- ADReplicationSubnet
- ADServicePrincipalName
- ADUser
- Home
- WaitForADDomain