Problem
You want to get and modify information about user domain accounts from the Exchange Management Shell.
Solution
To get and set information about Active Directory users, use the GetUser and SetUser cmdlets, respectively:
$user = GetUser *preeda*
$user | FormatList *
To update Preeda’s title to Senior Vice President:
$user | SetUser –Title "Senior Vice President" $user.Title
Discussion
Active Directory accounts are an integral part of working with Exchange 2007. While you will often want to modify the mailboxes of domain users, GetUser and SetUser lets you work with the user accounts themselves.
For more information about the GetUser cmdlet, type GetHelp GetUser. For more information about the SetUser cmdlet, type GetHelp SetUser.