| Author |
Message |
Gabe - GMail
Guest
|
Posted:
Tue Dec 21, 2004 1:19 am Post subject:
ADMT scripting interface error |
|
|
Folks,
When I run the code specified below, I get the following error. Can anyone
see any obvious error in how the OU is specified? I am running this on the
target DC with an account that is a source domain domain admin.
Error:
====
D:\Gabe\scripts\mignt4domcomp.wsf(30, 5) ADMT.Migration.1: Unable to migrate
computers. Unable to bind to container
'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
Unable to get distinguished name
for
'amer.corp.natinst.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
The parameter is incorrect.
Thanks,
Gabe
Script Source:
==========
<Job id=" MigratingComputersNTSource">
<Script language="VBScript" src="AdmtConstants.vbs" />
<Script language="VBScript">
Option Explicit
Dim objMigration
Dim objComputerMigration
'
'Create instance of ADMT migration objects.
'
Set objMigration = CreateObject("ADMT.Migration")
Set objComputerMigration = objMigration.CreateComputerMigration
'
'Specify general migration options.
'
objMigration.SourceDomain = "NT4Domain"
objMigration.TargetDomain = "AMER.CORP.SIGMA.COM"
objMigration.TargetOu =
"OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com"
'
'Specify computer migration specific options.
'
objComputerMigration.RestartDelay = 5
'
'Migrate computer objects on specified computer objects.
'
objComputerMigration.Migrate admtData, Array("woochay")
Set objComputerMigration = Nothing
Set objMigration = Nothing
wscript.echo "Done"
</Script>
</Job>
--
-- |
|
| Back to top |
|
 |
Al Dunbar [MS-MVP]
Guest
|
Posted:
Tue Dec 21, 2004 8:53 am Post subject:
Re: ADMT scripting interface error |
|
|
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message
news:uMj73js5EHA.2180@TK2MSFTNGP12.phx.gbl...
| Quote: | Folks,
When I run the code specified below, I get the following error. Can
anyone
see any obvious error in how the OU is specified? I am running this on
the
target DC with an account that is a source domain domain admin.
Error:
====
D:\Gabe\scripts\mignt4domcomp.wsf(30, 5)
|
Sorry, but your script seems to be less than 30 lines long - any idea which
statement this is?
| Quote: | ADMT.Migration.1: Unable to migrate
computers. Unable to bind to container
'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'. |
I assume that there is such an OU at corp.sigma.com, but it is hard to tell
from here.
| Quote: | Unable to get distinguished name
for
'amer.corp.natinst.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=c |
orp,DC=sigma,DC=com'.
I have never used ADMT.Migration, but the above specification does not look
like a valid distinguished name. It also is not clear to me where the
"amer.corp.NATINST.com" is coming from, as it appears nowhere in your code.
/Al
| Quote: | The parameter is incorrect.
Thanks,
Gabe
Script Source:
==========
Job id=" MigratingComputersNTSource"
Script language="VBScript" src="AdmtConstants.vbs" /
Script language="VBScript"
Option Explicit
Dim objMigration
Dim objComputerMigration
'
'Create instance of ADMT migration objects.
'
Set objMigration = CreateObject("ADMT.Migration")
Set objComputerMigration = objMigration.CreateComputerMigration
'
'Specify general migration options.
'
objMigration.SourceDomain = "NT4Domain"
objMigration.TargetDomain = "AMER.CORP.SIGMA.COM"
objMigration.TargetOu =
"OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com"
'
'Specify computer migration specific options.
'
objComputerMigration.RestartDelay = 5
'
'Migrate computer objects on specified computer objects.
'
objComputerMigration.Migrate admtData, Array("woochay")
Set objComputerMigration = Nothing
Set objMigration = Nothing
wscript.echo "Done"
/Script
/Job
--
--
|
|
|
| Back to top |
|
 |
Gabe - GMail
Guest
|
Posted:
Tue Dec 21, 2004 10:43 am Post subject:
Re: ADMT scripting interface error |
|
|
The line generating the error is:
objComputerMigration.Migrate admtData, Array("woochay")
The error message should have SIGMA instead of NATINST
Gabe
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message
news:uMj73js5EHA.2180@TK2MSFTNGP12.phx.gbl...
| Quote: | Folks,
When I run the code specified below, I get the following error. Can
anyone see any obvious error in how the OU is specified? I am running
this on the target DC with an account that is a source domain domain
admin.
Error:
====
D:\Gabe\scripts\mignt4domcomp.wsf(30, 5) ADMT.Migration.1: Unable to
migrate computers. Unable to bind to container
'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
Unable to get distinguished name
for
'amer.corp.sigma.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
The parameter is incorrect.
Thanks,
Gabe
Script Source:
==========
Job id=" MigratingComputersNTSource"
Script language="VBScript" src="AdmtConstants.vbs" /
Script language="VBScript"
Option Explicit
Dim objMigration
Dim objComputerMigration
'
'Create instance of ADMT migration objects.
'
Set objMigration = CreateObject("ADMT.Migration")
Set objComputerMigration = objMigration.CreateComputerMigration
'
'Specify general migration options.
'
objMigration.SourceDomain = "NT4Domain"
objMigration.TargetDomain = "AMER.CORP.SIGMA.COM"
objMigration.TargetOu =
"OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com"
'
'Specify computer migration specific options.
'
objComputerMigration.RestartDelay = 5
'
'Migrate computer objects on specified computer objects.
'
objComputerMigration.Migrate admtData, Array("woochay")
Set objComputerMigration = Nothing
Set objMigration = Nothing
wscript.echo "Done"
/Script
/Job
--
--
|
|
|
| Back to top |
|
 |
Gabe - GMail
Guest
|
Posted:
Tue Dec 21, 2004 4:11 pm Post subject:
Re: ADMT scripting interface error |
|
|
Couple of things:
I see that the empty spaces have gone. So the line number is incorrect. The line generating the error is:
objComputerMigration.Migrate admtData, Array("woochay")
The error is:
D:\Gabe\scripts\mignt4comp.wsf(25, 5) ADMT.Migration.1: Unable to migrate computers. Unable to bind to container 'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'. Unable to get distinguished name for 'amer.corp.sigma.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'. The parameter is incorrect.
Domain FQDN = amer.corp.sigma.com
OU Location = ????
this is what i am not sure how to specify. If i specify a top level OU (like "Computers" or "AMER"), it works. I don't know the syntax to specify a child OU
Gabe
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message news:uMj73js5EHA.2180@TK2MSFTNGP12.phx.gbl...
| Quote: | Folks,
When I run the code specified below, I get the following error. Can anyone
see any obvious error in how the OU is specified? I am running this on the
target DC with an account that is a source domain domain admin.
Error:
===> D:\Gabe\scripts\mignt4domcomp.wsf(30, 5) ADMT.Migration.1: Unable to migrate
computers. Unable to bind to container
'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
Unable to get distinguished name
for
'amer.corp.natinst.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
The parameter is incorrect.
Thanks,
Gabe
Script Source:
=========> <Job id=" MigratingComputersNTSource"
Script language="VBScript" src="AdmtConstants.vbs" /
Script language="VBScript"
Option Explicit
Dim objMigration
Dim objComputerMigration
'
'Create instance of ADMT migration objects.
'
Set objMigration = CreateObject("ADMT.Migration")
Set objComputerMigration = objMigration.CreateComputerMigration
'
'Specify general migration options.
'
objMigration.SourceDomain = "NT4Domain"
objMigration.TargetDomain = "AMER.CORP.SIGMA.COM"
objMigration.TargetOu =
"OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com"
'
'Specify computer migration specific options.
'
objComputerMigration.RestartDelay = 5
'
'Migrate computer objects on specified computer objects.
'
objComputerMigration.Migrate admtData, Array("woochay")
Set objComputerMigration = Nothing
Set objMigration = Nothing
wscript.echo "Done"
/Script
/Job
--
--
|
|
|
| Back to top |
|
 |
Al Dunbar [MS-MVP]
Guest
|
Posted:
Wed Dec 22, 2004 11:37 pm Post subject:
Re: ADMT scripting interface error |
|
|
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message
news:%23RomgW05EHA.3124@TK2MSFTNGP11.phx.gbl...
<quote>
Couple of things:
I see that the empty spaces have gone. So the line number is incorrect.
The line generating the error is:
objComputerMigration.Migrate admtData, Array("woochay")
The error is:
D:\Gabe\scripts\mignt4comp.wsf(25, 5) ADMT.Migration.1: Unable to migrate
computers. Unable to bind to container
'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
Unable to get distinguished name for
'amer.corp.sigma.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=cor
p,DC=sigma,DC=com'. The parameter is incorrect.
Domain FQDN = amer.corp.sigma.com
OU Location = ????
this is what i am not sure how to specify. If i specify a top level OU
(like "Computers" or "AMER"), it works. I don't know the syntax to specify
a child OU
</quote>
It says: unable to bind to container:
'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'
I cannot tell what your OU structure is, but this looks OK, assuming you
have an OU called "Computers" located in an OU called NT4Domain, which, in
turn is located within "AUS", which is located within "AMER".
It also says: Unable to get distinguished name for
'amer.corp.sigma.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=cor
p,DC=sigma,DC=com'. The parameter is incorrect.
Here, I admit to being just a bit mystified. What appears to the right of
the "/" looks like the distinguished name (and a fully qualified one, at
that) of the sub-sub-sub OU "Computers", i.e. including the domain. What
appears on the left is the FQDN in dns form of the domain. Is the domain
supposed to exist within one of its OU's?
It would appear to me that this "parameter is incorrect". What is it
supposed to represent?
/Al
Anyway, I would be surprized |
|
| Back to top |
|
 |
Gabe - GMail
Guest
|
Posted:
Thu Dec 23, 2004 10:28 pm Post subject:
Re: ADMT scripting interface error |
|
|
Apparently, you separate OUs by "/".
so in my code,
OU Location = "AMER/AUS/NT4Domain/Computers"
I wish this was documented somewhere.
Gabe
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message news:%23RomgW05EHA.3124@TK2MSFTNGP11.phx.gbl...
Couple of things:
I see that the empty spaces have gone. So the line number is incorrect. The line generating the error is:
objComputerMigration.Migrate admtData, Array("woochay")
The error is:
D:\Gabe\scripts\mignt4comp.wsf(25, 5) ADMT.Migration.1: Unable to migrate computers. Unable to bind to container 'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'. Unable to get distinguished name for 'amer.corp.sigma.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'. The parameter is incorrect.
Domain FQDN = amer.corp.sigma.com
OU Location = ????
this is what i am not sure how to specify. If i specify a top level OU (like "Computers" or "AMER"), it works. I don't know the syntax to specify a child OU
Gabe
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message news:uMj73js5EHA.2180@TK2MSFTNGP12.phx.gbl...
| Quote: | Folks,
When I run the code specified below, I get the following error. Can anyone
see any obvious error in how the OU is specified? I am running this on the
target DC with an account that is a source domain domain admin.
Error:
=== > D:\Gabe\scripts\mignt4domcomp.wsf(30, 5) ADMT.Migration.1: Unable to migrate
computers. Unable to bind to container
'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
Unable to get distinguished name
for
'amer.corp.natinst.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
The parameter is incorrect.
Thanks,
Gabe
Script Source:
========= > <Job id=" MigratingComputersNTSource"
Script language="VBScript" src="AdmtConstants.vbs" /
Script language="VBScript"
Option Explicit
Dim objMigration
Dim objComputerMigration
'
'Create instance of ADMT migration objects.
'
Set objMigration = CreateObject("ADMT.Migration")
Set objComputerMigration = objMigration.CreateComputerMigration
'
'Specify general migration options.
'
objMigration.SourceDomain = "NT4Domain"
objMigration.TargetDomain = "AMER.CORP.SIGMA.COM"
objMigration.TargetOu =
"OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com"
'
'Specify computer migration specific options.
'
objComputerMigration.RestartDelay = 5
'
'Migrate computer objects on specified computer objects.
'
objComputerMigration.Migrate admtData, Array("woochay")
Set objComputerMigration = Nothing
Set objMigration = Nothing
wscript.echo "Done"
/Script
/Job
--
--
|
|
|
| Back to top |
|
 |
Al Dunbar [MS-MVP]
Guest
|
Posted:
Fri Dec 24, 2004 9:29 am Post subject:
Re: ADMT scripting interface error |
|
|
I believe that it is documented somewhere. Perhaps it would be better to wish to have seen the documentation ;-)
/Al
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message news:u$CgoxQ6EHA.1524@TK2MSFTNGP09.phx.gbl...
Apparently, you separate OUs by "/".
so in my code,
OU Location = "AMER/AUS/NT4Domain/Computers"
I wish this was documented somewhere.
Gabe
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message news:%23RomgW05EHA.3124@TK2MSFTNGP11.phx.gbl...
Couple of things:
I see that the empty spaces have gone. So the line number is incorrect. The line generating the error is:
objComputerMigration.Migrate admtData, Array("woochay")
The error is:
D:\Gabe\scripts\mignt4comp.wsf(25, 5) ADMT.Migration.1: Unable to migrate computers. Unable to bind to container 'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'. Unable to get distinguished name for 'amer.corp.sigma.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'. The parameter is incorrect.
Domain FQDN = amer.corp.sigma.com
OU Location = ????
this is what i am not sure how to specify. If i specify a top level OU (like "Computers" or "AMER"), it works. I don't know the syntax to specify a child OU
Gabe
"Gabe - GMail" <gabe.eapen@gmail.com> wrote in message news:uMj73js5EHA.2180@TK2MSFTNGP12.phx.gbl...
| Quote: | Folks,
When I run the code specified below, I get the following error. Can anyone
see any obvious error in how the OU is specified? I am running this on the
target DC with an account that is a source domain domain admin.
Error:
=== > D:\Gabe\scripts\mignt4domcomp.wsf(30, 5) ADMT.Migration.1: Unable to migrate
computers. Unable to bind to container
'OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
Unable to get distinguished name
for
'amer.corp.natinst.com/OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com'.
The parameter is incorrect.
Thanks,
Gabe
Script Source:
========= > <Job id=" MigratingComputersNTSource"
Script language="VBScript" src="AdmtConstants.vbs" /
Script language="VBScript"
Option Explicit
Dim objMigration
Dim objComputerMigration
'
'Create instance of ADMT migration objects.
'
Set objMigration = CreateObject("ADMT.Migration")
Set objComputerMigration = objMigration.CreateComputerMigration
'
'Specify general migration options.
'
objMigration.SourceDomain = "NT4Domain"
objMigration.TargetDomain = "AMER.CORP.SIGMA.COM"
objMigration.TargetOu =
"OU=Computers,OU=NT4Domain,OU=AUS,OU=AMER,DC=amer,DC=corp,DC=sigma,DC=com"
'
'Specify computer migration specific options.
'
objComputerMigration.RestartDelay = 5
'
'Migrate computer objects on specified computer objects.
'
objComputerMigration.Migrate admtData, Array("woochay")
Set objComputerMigration = Nothing
Set objMigration = Nothing
wscript.echo "Done"
/Script
/Job
--
--
|
|
|
| Back to top |
|
 |
|
|
|
|