Updating ExtensionAttribute with a single command and with ActiveRoles Management Shell for Active Directory… it’s very easy:
Example:
Get-QADUser -SearchRoot ‘OU=Unit,DC=Domain’ -objectAttributes @{extensionAttribute1=”value”} | Set-QADUser -objectAttributes @{extensionAttribute2=”newvalue”}
Only users with email:
Get-QADUser -SearchRoot ‘OU=Unit,DC=Domain’ -objectAttributes @{extensionAttribute1=”value”} -LdapFilter ‘(mail=*)’ | Set-QADUser -objectAttributes @{extensionAttribute2=”newvalue”}