Change user attributes using Windows PowerShell

Share this:

Hello folks,

Sometimes we should alter attributes

get-qaduser | foreach-object { set-qaduser $ -ObjectAttributes @{mail = $ + ‘’ } }

Ok, Is it not enough? You want to change only for the determined users which belongs to certain OU.. ok.. let’s go:

get-qaduser -searchpath ‘ou=user, dc=apatricio,dc=local’ | foreach-object { set-qaduser $ -ObjectAttributes @{mail = $ + ‘’ } }

Best Regards,
Anderson Patricio

Written by Anderson Patricio

Anderson Patricio is a Canadian Exchange Server MVP and MCSM (Solutions Master) and he contributes to the Microsoft Community with articles, tutorials, blog posts, forums and book reviews. He is a regular contributor at, and (Portuguese).