Friday, July 20, 2012

Creating an Equipment Mailbox with Powershell on Office 365

Recently, we needed some equipment mailboxes in our Office 365 environment for some development tasks using the Exchange Web Services. It seems like the guides that we found online were typically accurate but were frequently incomplete. They included some of the steps, but not enough to really get going fully. Below are the steps developed in order to create our equipment mailboxes.  The steps include several Powershell commands and should help provision the mailboxes from start to finish.

To start, you'll need to install and configure the Microsoft Online Services Module for Windows PowerShell . You can follow the instructions here to do so, it's easy enough.

Next we'll want to open the Microsoft Online Services Module for Windows Powershell program. It will launch like any other Powershell program. Once loaded, we need to give Powershell the credentials we'll be logging in to Office 365 as. These need to be for a user with Administrator privileges in your Office 365 domain. To do so, run the following command:
  • $credentials = Get-Credential
    • This will spawn a window asking for credentials, enter your Office 365 administrative credentials.


Once Powershell has your credentials, we need to log into the Office 365 servers using the credentials we just set and start our remote session. Use the command below to do so:
  • $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $credentials -Authentication Basic -AllowRedirection
    • This might take a few seconds to complete.

Now we need to import the Powershell commands, from the Microsoft servers to our local session.

Use the command below to do so.
  • $ImportResults = Import-PSSession $session

Now that we are properly staged up with our Session and we've imported the commands from the Microsoft Online Services, we can create the mailbox using the commands below:
  • New-Mailbox -Name EquipmentTest01 -DisplayName "Equipment Test-01" -Equipment
The command above will create a mailbox for the EquipmentTest01 user, with a display name of Equipment Test-01. The only thing that makes this command any different than normal create mailbox commands is just the -Equipment argument. You can add other arguments to this command as well, such as -OrganizationalUnit, or -Database to specify which mailbox store to use.

For our purposes, we need to give another user full access to the mailbox. So we used the following command to delegate the access to the user.
  • Add-MailboxPermission "Development User" -user "Equipment Test-01" -Accessright FullAccess
Once that was completed, we were done. There are more things around creation and delegation that can be performed, so I'll post all the documentation below.

11 comments:

Office 365 said...

For More Information Install Office 365 microsoft office 365 setup
http://www.msoffice-setups.com

Jason Borne said...
This comment has been removed by a blog administrator.
Aman tripathi said...

Office.com/myaccount

Mcafee Product Key

Webroot.com/safe

norton.com/setup

norton.com/setup

www.norton.com/setup

ajay kumar said...

Norton.com/setup Online Help – Step by Step guide for Norton Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Norton product.
norton.com/setup

office.com/setup Online Help – Step by Step guide for Office Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Office product.
office.com/setup

mcafee.com/activate Online Help – Step by Step guide for mcafee activate, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup mcafee product.
mcafee.com/activate

Pogo Support - Call 1-844-456-8733 (US/CA) or 01444 39 0119 (UK) for Pogo-related issues. Any errors or issues will be fixed by us related to Pogo Games.
pogo support


Norton Reinstall – Norton has developed a Norton reinstall and removal tool to provides the ease of Un-installation and Re-installation. The Norton Antivirus offers you the protection from the malware, viruses, and other online threats like identity theft and data theft while shop online.
Norton Reinstall

Norton.com/setup Online Help – Step by Step guide for Norton Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Norton product.
norton.com/setup
Norton.com/setup Online Help – Step by Step guide for Norton Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Norton product.
norton.com/setup

office.com/setup Online Help – Step by Step guide for Office Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Office product.
office.com/setup

mcafee.com/activate Online Help – Step by Step guide for mcafee activate, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup mcafee product.
mcafee.com/activate

Pogo Support - Call 1-844-456-8733 (US/CA) or 01444 39 0119 (UK) for Pogo-related issues. Any errors or issues will be fixed by us related to Pogo Games.
pogo support


Norton Reinstall – Norton has developed a Norton reinstall and removal tool to provides the ease of Un-installation and Re-installation. The Norton Antivirus offers you the protection from the malware, viruses, and other online threats like identity theft and data theft while shop online.
Norton Reinstall

Norton.com/setup Online Help – Step by Step guide for Norton Setup, Download & complete installation online. We are providing independent support service if in case you face problem to activate or Setup Norton product.
norton.com/setup

office setup com said...


Before you plan to install the Office 2016 or Office 365 on your device be
it a Computer, Laptop, Mobile Phone or a Tablet, you are required to take
few important steps on of them is to remove any existing Office
installations from your PC. Just like the previous Office products, Office
2016 & 365 will conflict with the previously installed versions. So, it
becomes necessary to remove the previous office files properly.



setup.office.com
office.com
www.office.com/setup

www.office.com setup said...



To Setup retail card please visit official website.
Office Retail Cards allow you to download your security product from the
internet instead of installing from a CD, ensuring recent versions.


www.office.com/myaccount
office com setup
www.office.com setup

regina razz said...


with your entire process to setup office product online. Have you Just bought Microsoft Office product ? If yes then you can complete your Office Setup online with your product key code. You just need open office.com/setup , Install Office , Install Microsoft Office or setup.office.com into your web browser.

office setup
www.office.com/setup
office.com/setup

regina razz said...




In case any message saying ‘Stop’ pops up while installing Microsoft Office 365 due to a compatibility issue, contact our live chat support.Our online Experts through live chat will guide you through the entire process of Office setup, covering all steps and issues.Keep your 25 characters long product key with you.



Office Com Setup
office com/setup
www.office.com/setup

Anonymous said...

Install full MICROSOFT office setup 365 with our support. Now setting up your account will be a cakewalk with us.

Setup and Install Office 2017/2018 365 on your Mac/PC with genuine OFFICE PRODUCT key.
Word, Excel, PowerPoint, Outlook, OneNote and OneDrive, on your PC,Publisher and Access.Everything you need for home, education and work.
We are providing independent support service if in case you face problem to activate or SETUP OFFICE product.

Regards - www.office.com/setup

Smith said...

Online Supports...
office.com/setup
office.com/setup
norton.com/setup
Office.com/setup

Smith said...

Online Supports...
TurboTax Support
Quicken Support
Quickbooks Support