[THIN] Re: OT: Scripting Domain Replication

  • From: "Sullivan, Glenn" <GSullivan@xxxxxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Wed, 15 Jan 2003 07:11:11 -0500

D'oh... forgot about that.

It is the IADstools.dll from support.cab.

More info:
http://tinyurl.com/4gvz

Hope this helps,

Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.


-----Original Message-----
From: Braebaum, Neil [mailto:neil.braebaum@xxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Wednesday, January 15, 2003 5:26 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: OT: Scripting Domain Replication



Do you have to register a dll for that to work? ;-)

msdn does not appear to know about a function or method "ReplicaSync".

Neil

> -----Original Message-----
> From: Sullivan, Glenn [mailto:GSullivan@xxxxxxxxxxxxxx] 
> Sent: 14 January 2003 20:38
> To: 'thin@xxxxxxxxxxxxx'
> Subject: [THIN] Re: OT: Scripting Domain Replication
> 
> 
> 
> Here is a script I wrote to synch our AD:
> Option Explicit
> 
> Dim objRootDSE, objOU, comDLL
> Dim strDomainName
> Dim objDomainController, objDomainController2
> Dim intResult
> 
> Set objRootDSE = GetObject("LDAP://rootDSE";)
> strDomainName = objRootDSE.Get("defaultNamingContext")
> wscript.echo "Beginning Synch for " & strDomainName 
> WScript.Echo "---------------------------------------------------"
> WScript.Echo
> 
> Set objOU = GetObject("LDAP://OU=Domain Controllers," & 
> strDomainName) Set comDLL = CreateObject("IADsTools.DCFunctions")
> 
> For Each objDomainController In objOU
>       For Each objDomainController2 In objOU
>               If objDomainController.cn <> 
> objDomainController2.cn Then
>                       WScript.echo "  Requesting Synch 
> between " & objDomainController.cn & " and " & objDomainController2.cn
>                       intResult =
> comDLL.ReplicaSync(CStr(objDomainController.cn), CStr(strDomainName),
> CStr(objDomainController2.cn))
>                       If intResult=0 Then 
>                               wscript.echo "     Completed 
> successfully." 
>                       Else 
>                               wscript.echo "     Failed " &
> comDLL.LastErrorText
>                       End If
>                       WScript.Echo
>               End If
>       Next
> Next
> 
> 
> Watch the word wrap...
> 
> HTH,
> 
> Glenn Sullivan, MCSE+I  MCDBA
> David Clark Company Inc.
> 
> 
> -----Original Message-----
> From: TheThin [mailto:TheThin@xxxxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, January 14, 2003 2:59 PM
> To: thin@xxxxxxxxxxxxx
> Subject: [THIN] OT: Scripting Domain Replication
> 
> 
> 
> I'm trying to fix a user creation script.  It creates the 
> user and adds them to the correct groups just fine, but it's 
> having difficulty with the home directories.
> 
> When the home directory is created, it then runs cacls to set 
> the correct permissions on it, but the perms that should give 
> the user full control give "Unknown User" full control.  I'm 
> guessing that the domain is not replicating to the server in time.
> 
> Is there a way to script domain replication using vbscript or 
> does anyone know what is causing this?
> 
> Thanks,
> 
> Bill
> 
> Bill Denney / bdenney@xxxxxxxxxxxxxxxxxxxxx
> Phone: 678-781-5261
> Systems Analyst / Politis Consulting
> 3 Dunwoody Park / Suite 103 / Atlanta, GA 30338
> 
> *********************************************** 
> This Weeks Sponsor: WM Software
> WMS Messenger for TSE
> Affordable Instant Messaging for Terminal Servers 
http://www.wmsoftware.com/wmsm/
************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm
*********************************************** 
This Weeks Sponsor: WM Software
WMS Messenger for TSE
Affordable Instant Messaging for Terminal Servers
http://www.wmsoftware.com/wmsm/
************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

***********************************************************************
This e-mail and its attachments are intended for the above named 
recipient(s) only and are confidential and may be privileged.
If they have come to you in error you must take no action based 
on them, nor must you copy or disclose them or any part of 
their contents to any person or organisation; please notify the 
sender immediately and delete this e-mail and its attachments from 
your computer system.

Please note that Internet communications are not necessarily secure 
and may be changed, intercepted or corrupted. We advise that 
you understand and observe this lack of security when e-mailing us 
and we will not accept any liability for any such changes, 
interceptions or corruptions. 

Although we have taken steps to ensure that this e-mail and its 
attachments are free from any virus, we advise that in keeping 
with good computing practice the recipient should ensure they 
are actually virus free.

Copyright in this e-mail and attachments created by us belongs 
to Littlewoods. 

Littlewoods takes steps to prohibit the transmission of offensive, 
obscene or discriminatory material.  If this message contains 
inappropriate material please forward the e-mail intact to 
postmaster@xxxxxxxxxxxxxxxxx and it will be investigated. 
Statements and opinions contained in this e-mail may not 
necessarily represent those of Littlewoods.

Please note that e-mail communication may be monitored.

Registered office: 
Littlewoods Retail Limited, 
Sir John Moores Building, 
100 Old Hall Street, 
Liverpool,
L70 1AB 
Registered no: 421258  

http://www.littlewoods.com 
***********************************************************************
*********************************************** 
This Weeks Sponsor: WM Software
WMS Messenger for TSE
Affordable Instant Messaging for Terminal Servers
http://www.wmsoftware.com/wmsm/
************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm
*********************************************** 
This Weeks Sponsor: WM Software
WMS Messenger for TSE
Affordable Instant Messaging for Terminal Servers
http://www.wmsoftware.com/wmsm/
************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: