Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Active Directory Powershell Change Attribute of ReplicationSiteLink

Posted on 2016-09-02
3
Medium Priority
?
61 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Let's recap what we learned from yesterday's Skyport Systems webinar.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

604 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