Skip to content

Instantly share code, notes, and snippets.

View flynnCoolblue's full-sized avatar

Flynn Bundy flynnCoolblue

View GitHub Profile
@RamblingCookieMonster
RamblingCookieMonster / Migrate-ADMTUserCLI.ps1
Last active October 23, 2023 18:06
This is an example function that wraps ADMT.exe, abstracting out migration of Active Directory users into a PowerShell function.
<#
This is a PowerShell function wrapping the ADMT executable to abstract out migrating Active Directory users.
Read all the ADMT docs, and all the code and comments below before considering using this : )
The COM object was covered nicely by Jan Egil Ring:
http://blog.powershell.no/2010/08/04/automate-active-directory-migration-tool-using-windows-powershell/
Unfortunately, the COM object does not support Include files, a critical requirement for us.