Skip to content

Program to generate all the necessary Active Directory PowerShell Module commands to migrate Users, Groups and Organizational Units between disconnected Domain Controllers. The program creates the commands by parsing the reports generated by Get-ADUser and Get-ADGroup commands on the source domain.

License

Notifications You must be signed in to change notification settings

Better-Computing-Consulting/ad-users-groups-migrate-commands-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ad-users-groups-migrate-commands-generator

Program to generate all the necessary Active Directory PowerShell Module commands to migrate Users, Groups and Organizational Units between disconnected Domain Controllers. The program creates the commands by parsing the reports generated by Get-ADUser and Get-ADGroup commands on the source domain.

The utlity will generate these commands in order:

First, New-ADOrganizationalUnit to make sure every user or group has its appropriate container.

Then, New-ADUser followed by Set-ADUser to create and then assign the old domain email address to the new user as a secondary ProxyAddresse in case email delivery will be migrated to the new organization as well.

Next, New-ADGroup followed by Add-ADGroupMember to create and add users to the same groups they used to be in the old organization. The type and scope of the groups are maintained during migration.

Some users do not have all their properties set, so the program keeps track of the properties without values and only includes the properties that have values in the New-ADUser user commands it generates.

The Reports.ps1 file contains the commands needed to produce the reports in the format the program is expecting. The filter in the commands can be varied to accommodate different migration requirements.

There is a blog I gives an overall description on how the program works, and then goes into detail of some aspects of the program that helps ensure the Users and Groups are created in the destination domain without errors, such as handling the empty user properties and creating the Organizational Units (OU) that contain them.

https://bcc.bz/post/active-directory-powershell-module-users-and-groups-migration-commands-generator

There is also a YouTube video that demonstrates the utility:

https://youtu.be/84bkEqmduUQ

😃

About

Program to generate all the necessary Active Directory PowerShell Module commands to migrate Users, Groups and Organizational Units between disconnected Domain Controllers. The program creates the commands by parsing the reports generated by Get-ADUser and Get-ADGroup commands on the source domain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published