Tip: Use cmdlets to Create Room and Equipment Mailboxes in Exchange 2010

Follow Our Daily Tips

RSS | Twitter | Blog | Facebook

Tell Us Your Tips

Share your tips and tweaks.

In the Exchange Management Shell, you can create a user account with a mailbox for rooms and equipment by using the New-Mailbox cmdlet. Here’s a look at the syntax and usage you need to know.

For rooms, you must use the –Room parameter and for equipment, you must use the –Equipment parameter. By default, when you use either parameter, the related value is set as $true.

Note that although the account is disabled by default, you must enter a secure password for the account when prompted.

Syntax

New-Mailbox -Name 'DisplayName' -Alias 'ExchangeAlias' -OrganizationalUnit 'OrganizationalUnit' -UserPrincipalName 'LogonName' 
-SamAccountName 'prewin2000logon' -FirstName '' -Initials '' -LastName '' -Database 'Server\MailboxDatabase' 
[-Room <$false|$true> | -Equipment <$false|$true> ]

Usage

New-Mailbox -Name 'Conference Room 27' -Alias 'room27' -OrganizationalUnit 'cpandl.com/Sales' -UserPrincipalName 'room27@cpandl.com' 
-SamAccountName 'room27' -FirstName '' -Initials '' -LastName '' -Database 'Sales Primary' -Room

From the Microsoft Press book Microsoft Exchange Server 2010 Administrator’s Pocket Consultant by William R. Stanek.

Looking for More Tips?

For more tips on Exchange Server and other Microsoft technologies, visit the TechNet Magazine Tips library.