What is the script that will update the target SamAccountName of an Active Directory account during mailbox migration?
Exchange Migrator 2.2 SP1 HF27949
Exchange Migrator 2.2 SP1 HF34780
Exchange Migrator 2.3
This script will change the target Active Directory user object's pre-Microsoft Windows 2000 logon name (SamAccountName) to a value that will match the user name of the Primary-NT-Account for the source mailbox.
- In the Specify Migration Options wizard select the following options
- Yes, I would like to use scripts.
- I will write VBScripts.
- Include IADs pointers to objects.
'Mailbox-Post Process VBscript
name = varsetObject.getProperty("DirMigr.SourceObject.AssociatedNtAcctName")
targetIADs.put "samAccountName", name
Exchange Migrator 2.2 SP1 Hotfix 27949 or later must be installed for this scripting property to be available.