Quest Cmdlet Powershell script to update mail/email attribute on user objects in AD
Posted on 2011-02-25
Hello, I would like to update all users in our AD, local domain, with a email address in the mail attribute of the user object. mail = firstname.lastname@example.org' . I am new to using quest cmdlets & powershell.
this is what i am starting with, but having trouble
Get-QADUser -SearchRoot * | -LdapFilter '(mail='')| set-qaduser -email "$email@example.com"
All help is greatly appreciated. thanks