Active Directory Replication PowerShell Module 2.01

Managing Active Directory Sites, Site Links and Subnets very easily with PowerShell. Also checking the Active Directory Replication is easy and richer than repadmin.exe, the cmdlets in this module do return objects and not just text. So no more boring test parsing.

 
 
 
 
 
(80)
Add To Favorites
Active Directory
1/22/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to Ask a Question


  • Unable to run get-adreplicationsite
    1 Posts | Last Post March 27, 2013
    • I am trying to run get-adreplicationsite on a 2008 R2 DC, but it throws the following error :
      
      The term 'get-adreplicationsite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 
      At line:1 char:22
      
      PLEASE NOTE:
      
      1. I have already set-executionpolicy remotesigned set to YES
      
      2. ADReplication cmdlets folder is already present in %PSModulePath%
      
      Thanks in advance,
      
      Cheers
  • New-AdSiteLink error
    10 Posts | Last Post February 09, 2013
    • Hi, thanks for the great job creating these scripts. I have a doubt, maybe I don't know how to use the parameters properly. I enter the command as below:
      
      New-ADSiteLink -Name "ABC-XYZ" -Cost 100 -ReplicationInterval 180 -Sites "ECE,XYZ"
      
      and I get the error (New-ADSiteLink : Cannot process argument transformation on parameter 'Sites'. Cannot convert the "ABC,XYZ" value of type "System.String" to type "System.DirectoryServices.ActiveDirectory.ActiveDirectorySite[]".
      
      Can you help me please?
      
      Kind Regards
    • Hi, without proper documentation it is not that intuitive. The syntax help says that the sites parameter for New-ADSiteLink wants an array of sites: (-Sites <ActiveDirectorySite[]>). So this works: $s1 = Get-ADSite -Name A; $s2 = Get-ADSite -Name B; New-ADSiteLink -Name A-B -Cost 100 -ReplicationInterval 180 -Sites $s1,$s2
      
      HTH, Raimund
    • Thank you very much Raimund, now I got it and it worked very well! I really appreciate these scripts and I thank you for your prompt reply. Now I can automate a lot of work.
    • Hello Raimund,
      
      Pls, do u know if is possible do it with VBSCRIPT ? 
    • Thank you very much.
    • João, you cannot use that module with VBS. Doing the same stuff in VBS is possible but would be a lot more code than in PowerShell. I used a bunch of classes provided in the .net Framework that are not available in VBS.
    • Nice Script mate .. 
      thanks for sharing..
      
      
    • Great Script, thanks.
    • João, it's not possible to use this module with VBS.
    • nice script
  • can i move AD from one to other server
    1 Posts | Last Post February 09, 2013
    • With this script can i replicate the AD to an other server
  • powershell v3 problem
    3 Posts | Last Post January 22, 2013
    • hi there is few errs when importing to powershell v3. delimited to $($sitename) and it is working. 
      
      At C:\Windows\System32\WindowsPowerShell\v1.0\Modules\ADReplication\ADReplication.ps1:118 char:40
      +         throw "Cannot read servers from site $siteName: ($_.Exception.Message)"
      +                                              ~~~~~~~~~~
      Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to delimit the name.
      same on
      830 char:37
      1206 char:61
      
      regards
      jakub jares
    • Thanks, will take a look into this the next week.
      
      -Raimund
    • Fixes...
  • Force replication
    2 Posts | Last Post December 06, 2012
    • Hi Raimund, as I am reading this, I didn't find any command within your code to force/trigger any replication - neither intrasite nor intersite. This would be a real addition to your code as this is missing when dealing with the AD replication theme. Otherwise great job done :-)
    • I agree, it would be really useful an option to force/trigger any replication
  • Replicate Password
    2 Posts | Last Post December 06, 2012
    • Thanks for Sr.PFE hard work!
      
      does this module support:
      1.Replicate Users/OU/Groups from ForestOne to ForestTwo with password?
      2.Schedule for daily incremental changes?
      3.A little modification when replicating User?
    • Hi Incense Lee,
      
      Answering your questions:
      
      1 - No, it doesn't support it.
      2 - Yes, it's possible to schedule it.
      3 - No, it doesn't support it.
  • Authenticating from a non-domain workstation
    2 Posts | Last Post September 14, 2012
    • Excellent work Raimund!
      
      How difficult do you think it would be to add additional paremeters to the functions to allow passing alternate credentials?
      
      Thanks!
      Zach
    • You are right, this is indeed missing. Adding that feature to the LocalAccounts module was quite easy as it is written in C# and I had only to change the base cmdlets. The ADReplication module is done completely in PowerShell and I would need to alter and test each cmdlet as there is no inheritance in PowerShell. This takes time but should not very difficult. So if you want to do it 
      
      I do not want to put much more effort in this module as Windows Server 2012 finally comes with cmdlets for AD replication.
      
      Thanks,
      Raimund
  • Replication Protocol?
    2 Posts | Last Post July 03, 2012
    • Hi there, 
      Awesome set of Functions, well played and hats off.
      
      Just a general question for potential feature capability.
      
      All the AD Site Links created via powershell are IP RPC based and for obvious reasons as well. However is it possible to create SMTP based Site Links from the powershell? 
      
      Why you may ask? Well I have a potential need for the rapid implementation and polishing of AD site links using SMTP as the protocol during the deployment and stabilization of a greenfield AD containing 134 remote sites with an ADGC presence. 
      
      The SMTP links are a failsafe at higher cost intended for use over vpn redundant links. The nature of the business requires sync to occur within 120mins and due to security protocols we are unable to make use of RPC over the DR links. To manually modify the 134 SMTP links is just totally inefficient and if I were a better programmer believe me I would have put the effort in to make this a possibility. Unfortunately coding and I are similar in partnership to gaffer tape and chewing gum are with construction. So as you can imagine the results vary dramatically. 
      
      Hence me posting...... 
      
      Regards
    • I have just added support for SMTP site links and uploaded version 2.01. I did not have much time for this so please test before using it in production.
      
      Hope that helps,
      Raimund