Solved

Active Directory Powershell Change Attribute of ReplicationSiteLink

Posted on 2016-09-02
3
52 Views
Last Modified: 2016-09-02
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?
0
Comment
Question by:Thomas_1991
3 Comments
 
LVL 4

Expert Comment

by:Elizabeth Anderson
ID: 41781380
Get-ADReplicationSiteLink
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

0
 

Author Comment

by:Thomas_1991
ID: 41781391
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.
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 41781429
Try..
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


Or

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

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question