ADMT and PowerShell

Welcome Forums General PowerShell Q&A ADMT and PowerShell

This topic contains 5 replies, has 3 voices, and was last updated by

 
Participant
3 years, 3 months ago.

  • Author
    Posts
  • #22201

    Participant
    Points: 21
    Team Member
    Rank: Member

    Hi all!

    We're about to embark on a fun AD migration project. Jan wrote a nice post on using the ADMT.Migration COM object a while back, this was a very helpful jump start.

    That being said, we're going to need the include file to associate principals with disparate samaccountnames.

    Does the ADMT.Migration object expose the option to use an include file? Digging around in here I'm not seeing anything obvious, and not finding much documentation out there. Am I missing something, or would I be better off wrapping the command line calls (not COM) in PowerShell functions?

    On a side note... does anyone know of any existing ADMT PowerShell functions or modules, outside of Jan's code?

    Thanks!

  • #22221

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    It would be pretty unusual for a COM object to do that, so likely not. Me, I prefer to wrap COM in a function whenever possible, so that I can use the rest of PowerShell's functionality and language to automate the process.

  • #22226

    Participant
    Points: 21
    Team Member
    Rank: Member

    Odd, hopefully this won't double post...

    Hi Don!

    Should have mentioned; that's the goal. Looking to write a few functions or a module that wrap up some interface to ADMT.

    Looks like wrapping the executable will be more flexible.

    Thanks!

  • #28714

    Participant
    Points: 0
    Rank: Member

    Warren,

    I'm looking to do something very similar with PowerShell. We have around 10 domains we need to migrate 2 of which are intraforest. How far did you get? Have you posted any of your code?

    Thank you,

  • #28715

    Participant
    Points: 21
    Team Member
    Rank: Member

    Hi!

    We ended up wrapping ADMT.exe. The COM object didn't cover a few key requirements (e.g. include file).

    Will look at sanitizing and posting the code. It's not user facing, so... might be a bit ugly / not follow best practices : )

  • #28816

    Participant
    Points: 21
    Team Member
    Rank: Member

    Alrighty, sanitized it a bit. Much of this was purpose-built, not really meant for public consumption : ) Even internally, we call a modified version of this through a delegated, constrained endpoint, which locks things down a bit more.

    Some notes in the comments

    Cheers!

The topic ‘ADMT and PowerShell’ is closed to new replies.