?
Solved

Active Directory Powershell Change Attribute of ReplicationSiteLink

Posted on 2016-09-02
3
Medium Priority
?
56 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

801 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