Microsoft Exchange Server 2010 : Managing Mailboxes (part 7) - Using the EMS to Manage User Properties

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
5.2. Using the EMS to Manage User Properties

You can also manage mailbox and user properties from the EMS. For doing any type of mailbox administration "in bulk," you will definitely want to learn how to use the EMS. There are three cmdlets that you should know about in order to manage most of the properties: the Set-User, Set-Mailbox, and Set-CasMailbox cmdlets.

Let's start with the Set-User cmdlet; this cmdlet manages user account properties that are unrelated to Exchange Server. Say that we want to update user Stan.Reimer's mobile phone number. We would type this:

Set-User Stan.Reimer -MobilePhone "(808) 555-1234"

The Set-User cmdlet has quite a few useful parameters. Table 3 lists many of these options. You can retrieve them from within the EMS by typing Set-User -? or Help Set-User.

Table 3. Some Set-User Cmdlet Parameters
PostalCodeSets the zip or postal code.
ManagerSets the name of the user's manager; the input value must be a distinguished name in canonical name format, such as Craig.
DisplayNameUpdates the user's display name, which appears in the GAL.
MobilePhoneSets the mobile/cell phone number.
CitySets the city or locality name.
FirstNameSpecifies the given or first name.
LastNameSpecifies the surname or last name.
CompanySets the company name.
DepartmentSets the department name.
FaxSpecifies the facsimile number.
HomePhoneSets the home phone number.
PhoneSets the business phone number.
StateOrProvinceSets the state or province.
StreetAddressSets the street address.
TitleSets the title or job function.

You can retrieve the list of properties for Set-User by using the Get-User cmdlet, specifying a username, and then piping the output to the Format-List cmdlet. Piping the output of a Get- cmdlet to Format-List is a great way to enumerate of the properties of an object and to also learn the property names. Here is an example of some of the properties that are returned; we removed some properties to save space.

Get-User Matthew.Cook | FL
IsSecurityPrincipal : True
SamAccountName : Matthew.Cook
SidHistory : {}
UserPrincipalName : [email protected]
ResetPasswordOnNextLogon : False
CertificateSubject : {}
RemotePowerShellEnabled : True
NetID :
OrganizationalUnit : ithicos.local/Corporate
AssistantName :
City : Honolulu
Company : Somorita Surfboards
CountryOrRegion :
Department : Surfboard Design
DirectReports : {}
DisplayName : Matthew Cook
Fax : (808) 555-6657
FirstName : Matthew
HomePhone :
Initials :
LastName : Cook
Manager :
MobilePhone : (808) 555-7777
Notes :
Office : Honolulu Surfboard Design
OtherFax : {}
OtherHomePhone : {}
OtherTelephone : {}
Pager : (808) 555-5545
Phone : (808) 555-1234
PhoneticDisplayName :
PostalCode : 96816
PostOfficeBox : {}
RecipientType : UserMailbox
RecipientTypeDetails : UserMailbox
SimpleDisplayName : Matt Cook (Honolulu)
StateOrProvince : Hawaii
StreetAddress : 550 Kalakaua Avenue, Suite 201
Title : Senior Systems Engineer
UMDialPlan :
UMDtmfMap : {emailAddress:62884392665,
lastNameFirstName:26656288439, firstNameLastName:62884392665}

AllowUMCallsFromNonUsers : SearchEnabled
WebPage :
TelephoneAssistant :
WindowsEmailAddress : [email protected]
UMCallingLineIds : {}
IsValid : True
ExchangeVersion : 0.10 (
Name : Matthew Cook
DistinguishedName : CN=Matthew Cook,OU=Corporate,
OriginatingServer : HNLMBX01.ithicos.local

Not only does the Get-User cmdlet allow you to view this information about a user account, but it also allows you to see all the property names. For example, if you did not know what the property name was for the State, you could look in the output listing and see that it is -StateOrProvince. You could then change the user's state by typing the following EMS command:

Set-User vlad.mazek -StateOrProvince "Florida"

You can pipe the output of one cmdlet together with another one in order to perform bulk administration. Let's say that we want to set the Office name of all users who are in Honolulu. We can use a combination of Get-User and Set-User to accomplish this:

Get-User | Where-Object {$ -eq "Honolulu"} | 

Set-User -Office "Main Office"

In this example, we piped the output of the Get-User cmdlet to a local filter (using the Where-Object cmdlet). This provided us with a subset of only the users whose city property is equal to Honolulu; the output of that was then piped to the Set-User cmdlet and the office property was updated. That was not too difficult once you saw it the first time, was it?

  •  Bare-Metal Recovery : Solaris Bare-Metal Recovery - Setup of a Noninteractive Restore (part 2) - Creating a Noninteractive Disk Image
  •  Bare-Metal Recovery : Solaris Bare-Metal Recovery - Setup of a Noninteractive Restore (part 1) - Noninteractive Setup Files, Creating a Noninteractive Tape Image
  •  Bare-Metal Recovery : Solaris Bare-Metal Recovery - Preparing for an Interactive Restore (part 2) - Bare-Metal Recovery with Flash Archive
  •  Bare-Metal Recovery : Solaris Bare-Metal Recovery - Preparing for an Interactive Restore (part 1) - Creating Flash Archive Images
  •  Bare-Metal Recovery : Solaris Bare-Metal Recovery - Using Flash Archive
  •  Commercial Backup Utilities (part 1) - Full Support of Your Platforms, Backup of Raw Partitions
  •  Programming WCF Services : Instance Management - Behaviors
  •  SAP Planning : Best Practices Approach to Staffing the SAP TSO
  •  Creating Interactive Windows Services : Services and Polling - Using Configuration Files
  •  Creating Interactive Windows Services : Services and Polling - Updating Tutorials.ThreadFunc
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us