Using PowerShell Set-Aduser -add,-replace and -remove parameters, you can set custom attributes in the active directory.