• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 71
  • Last Modified:

Active Directory Powershell Change Attribute of ReplicationSiteLink

i want to change the Attribute "options" on a ADReplicationSiteLink with Powershell.

Get-ADReplicationSiteLink -Filter * | Set-ADReplicatoinSiteLink -properties options =1

The problem is, powershell doesnt know that attribute. How can i change that?
1 Solution
Pallavi GodseSr. Digital Marketing ExecutiveCommented:
Returns a specific Active Directory site link or a set of site links based on a specified filter.

Parameter Set: Filter
Get-ADReplicationSiteLink -Filter <String> [-AuthType <ADAuthType> {Negotiate | Basic} ] [-Credential <PSCredential> ] [-Properties <String[]> ] [-Server <String> ] [ <CommonParameters>]

Parameter Set: Identity
Get-ADReplicationSiteLink [-Identity] <ADReplicationSiteLink> [-AuthType <ADAuthType> {Negotiate | Basic} ] [-Credential <PSCredential> ] [-Properties <String[]> ] [-Server <String> ] [ <CommonParameters>]

Open in new window

Thomas_1991Author Commented:
when i run

Set-ADReplicationSiteLink -Identity "site" -Properties

"Properties" isnĀ“t known by powershell, so i cant change an attribute, just values like costs etc.

i want to change attributes like "options" thats the question.
For single Sitelink
Set-ADReplicationSiteLink -Identity "Europe-Asia" -Replace @{'options'=1}

Open in new window

To configure all sitelink
Get-ADReplicationSiteLink -Filter * | Set-ADReplicationSiteLink -Replace @{'options'=1}

Open in new window


Get-ADReplicationSiteLink -Filter * | %{ Set-ADReplicationSiteLink $_.Name -Replace @{'options'=1}}

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now