PowerShell Script to Enable Change Notification

PowerShell Script to enable Change Notification (similar to intra-site replication) for inter-site Site Links

4.6 Star
Add to favorites
Active Directory
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • The script is not working as expected?
    1 Posts | Last post June 25, 2014
    • In my case (Server 2012 R2) [–replace @{options=$($_.options -bor 1)] part always sets options attribute to "1" regardless of the options' previous value. May be $_.options doesn't resolve to a valid value?
      I suggest using this:
      Get-adobject -LDAPFilter "(objectCategory=sitelink)" –searchbase ((Get-ADRootDSE).configurationNamingContext) -properties options | % { set-adobject $_ –replace @{options=$($_.options -bor 1)} }
      Also this version is environment independent :)
  • Thanks for the script
    1 Posts | Last post February 26, 2014
    • Powershell version 4.0 on server 2012 didn't like the dash in the site-link part of the filter. Changing the filter to use braces and single quotes worked.
      –filter {objectcategory –eq 'cn=site-link,cn=schema,cn=configuration,dc=contoso,dc=com'}
  • Nice Script.
    1 Posts | Last post March 07, 2012
    • thnaks for sharming ..