|
|
I am trying to run get-adreplicationsite on a 2008 R2 DC, but it throws the following error : The term 'get-adreplicat ionsite' 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-executionpo licy remotesigned set to YES 2. ADReplication cmdlets folder is already present in %PSModulePath% Thanks in advance, Cheers
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.Directo ryServices.Acti veDirectory.Act iveDirectorySit e[]". 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 -ReplicationInt erval 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 ?
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.
With this script can i replicate the AD to an other server
hi there is few errs when importing to powershell v3. delimited to $($sitename) and it is working. At C:\Windows\System32\WindowsPow erShell\v1.0\Mo dules\ADReplica tion\ADReplicat ion.ps1:118 char:40 + throw "Cannot read servers from site $siteName: ($_.Exception.M essage)" + ~~~~~~~~~~ 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
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
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.
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
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