This topic is resolved

Share

This topic contains 3 replies, has 2 voices, and was last updated by Profile gravatar of Karim Buzdar Karim Buzdar 2 months, 3 weeks ago.

  • Author
    Posts
  • #148189
    Profile gravatar of Karim Buzdar Karim Buzdar 
    Moderator
    • Topics: 16
    • Replies: 48
    Post count: 143
    Member Points: 2,683

    Hi all,

    I am migrating users using VBscript between two domains in the same forest. But, I am getting the following error:

    ADMT.Migration.1: Unable to migrate users. Unable to connect to domain ‘MYSOURCEDOMAIN’. The specified domain either does not exist or could not be contacted.

    The domain  can be pinged from command line, and earlier I was able to migrate users with GUI and command prompt.

    Following are the content of script file.

    <job id=”dasd”>
    <Script language=”VBScript”  src=”templatescript.vbs” />
    <Script language=”VBScript” >
    Option Explicit

    Dim objMigration
    Dim objUserMigration

    Set objMigration = CreateObject(“ADMT.Migration” )
    Set objUserMigration = objMigration.CreateUserMigration

    objMigration.SourceDomain = “child”
    objMigration.SourceOu = “Users”
    objMigration.TargetDomain = “yourdomain.com”
    objMigration.TargetOu = “Students”
    objMigration.PasswordOption = admtComplexPassword
    objMigration.ConflictOptions = admtIgnoreConflicting

    objMigration.Intraforest = True

    objUserMigration.MigrateSIDs = True
    objUserMigration.TranslateRoamingProfile = True
    objUserMigration.UpdateUserRights = False
    objUserMigration.FixGroupMembership = True
    objUserMigration.MigrateServiceAccounts = False
    objUserMigration.MigrateGroups = False

    objUserMigration.Migrate admtData, “CN=if”

    Set objUserMigration = Nothing
    Set objMigration = Nothing
    </Script>
    </job>

     

    Any clues?

    Thank you,

    • This topic was modified 2 months, 3 weeks ago by Profile gravatar of Karim Buzdar Karim Buzdar.
    0
  • #149438
    Profile gravatar of Karim Buzdar Karim Buzdar 
    Moderator
    • Topics: 16
    • Replies: 48
    Post count: 143
    Member Points: 2,683

    So I carefully checked, the users were already migrated in the target OU despite the error. Look like some bug in ADMT.

    0
    • #150639
      Profile gravatar of Michael Pietroforte Michael Pietroforte 
      Keymaster
      • Topics: 136
      • Replies: 292
      Post count: 866
      Member Points: 5,199

      Strange. Maybe next time you try PowerShell. VBscript is dying.

      0
      • #150641
        Profile gravatar of Karim Buzdar Karim Buzdar 
        Moderator
        • Topics: 16
        • Replies: 48
        Post count: 143
        Member Points: 2,683

        Yes,

        0

You must be logged in to reply to this topic.

CONTACT US

Please ask IT administration questions in the forum. Any other messages are welcome.

Sending
© 4sysops 2006 - 2017

Log in with your credentials

or    

Forgot your details?

Create Account