Pop Quiz
Exchange 2010 Pop Quiz: Creating New User and Mailbox
Applies to the "Configuring Exchange Recipients and Public Folders" objective of Exam 70-662.
Q: Choose the correct Exchange PowerShell command to create a new user and mailbox.
- New-Mailbox -Name 'Test User' -Alias 'testuser' -UPN 'testuser@contoso.com' -SamName 'testuser' -FirstName 'Test' -Initials '' -LastName 'User' -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false
- New-Mailbox -Name 'Test User' -Alias 'testuser' -UserPrincipalName 'testuser@contoso.com' -SamAccountName 'testuser' -FirstName -Initials '' -LastName 'User' -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false
- New-Mailbox -Alias 'testuser' -UserPrincipalName 'testuser@contoso.com' -SamAccountName 'testuser' -FirstName 'Test' -Initials '' -LastName 'User' -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false
- New-Mailbox -Name 'Test User' -Alias 'testuser' -UserPrincipalName 'testuser@contoso.com' -SamAccountName 'testuser' -FirstName 'Test' -Initials '' -LastName 'User' -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false
Answer and explanation is below.
Answer is D: The New-Mailbox –Name 'Test User' –Alias 'testuser' –UserPricipalName 'testuser@contoso.com' –SamAccountName 'testuser' is the correct command to create a new user and mailbox.
When creating a new user and mailbox the PowerShell command syntax must include the –name, -alias, –UserPrincipalName, and SamAccountName.
Quick Tip: Learn more about Exchange Exchange PowerShell commands here.
References:
Bonus Question: Which database maintenance task is required prior to using Windows Server Backup? (Tweet your answer with #pop662c and get a chance to win a Redmond t-shirt! Deadline for entries is Monday, February 27.)
Answer to last week's bonus question: The Exchange 2010 archive mailbox feature allows users to have long-term mailbox data kept automatically in a separate mailbox.
About the Author
Andy Barkl, CCNP, CCDP, CISSP, MCT, MVP, MCDST, MCSE: Security, MCSA: Security, MCSA: Messaging A+, CTT+, i-Net+, Network+, Security+, Server+, CNA, has over 20 years of experience in the IT field. He's the owner of MCT & Associates LLC, a technical training and consulting firm in Phoenix, Arizona. He enjoys dividing his time between teaching in the classroom, writing from his office and consulting on Cisco and Windows deployments. He's also the online editor for MCPMag.com, TCPMag.com, CertCities.com, and a contributing author and editor for Sybex and Cisco Press. He hosts a multitude of exam preparation chats monthly on MCPmag.com and CertCities.com.