![]() You can override property values of the new object by setting the appropriate parameters. Then provide this object to the Instance parameter of the New-ADReplicationSite cmdlet to create a new site object. To retrieve an instance of an existing site object, use a cmdlet such as Get-ADReplicationSite. ![]() ![]() Method 1: Use an existing site object as a template for a new object. You can use an instance of an existing site object as a template or you can construct a new site object by using the Windows PowerShell command line or by using a script. Specifies an instance of a site object to use as a template for a new site object. This example sets the daily replication schedule of the site with name Asia. PS C:\> Set-ADReplicationSite -Identity "Asia" -ReplicationSchedule $Schedule PS C:\> $Schedule.SetDailySchedule("Twenty","Zero","TwentyTwo","Thirty") Example 3: Set the replication schedule for a site PS C:\> $Schedule = New-Object -TypeName This command returns all the sites in the directory and sets the ScheduleHashingEnabled property to spread replication start times randomly across the entire schedule interval rather than just the first quarter of the interval. Example 2: Set replication start times for a filtered list of sites PS C:\> Get-ADReplicationSite -Filter * | % The command sets the properties of the site with name NorthAmerica to prevent its intersite topology generator (ISTG) at corp-DC02 from generating connections for intersite replication. Examples Example 1: Set the replication site to prevent connections PS C:\> Set-ADReplicationSite -Identity NorthAmerica -InterSiteTopologyGenerator corp-DC02 -AutomaticInterSiteTopologyGenerationEnabled $False Sites can also be used to optimize replication between domain controllers. 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. The Set-ADReplicationSite cmdlet is used to set the properties for an Active Directory site that is being used for replication. In this article Syntax Set-ADReplication Site Sets the replication properties for an Active Directory site.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |