Connecting to Office365 Using PowerShell

My first post on the topic of Office365 regards a simple task, connecting to the Office365 portal using PowerShell.  First of all the assumptions;  You have an Office365 account and you have PowerShell installed.

Follow the instructions at the this page and install both the single sign-on add in and the PowerShell command-lets.  After that you can connect to your account by importing the MSOnline module or opening PowerShell with the module imported already from the start menu then following these steps;

Import-Module MSOnline

This will give you access to script against your account rather than the services specifically, you will be able to query and create accounts that are service wide.  For Exchange specific commands there is a different method required, the details of which can be found at the following page;

Install and Configure PowerShell
Connect to Office365 Exchange Services

A New Chapter

I’ve recently moved teams at work from SQL Developer Support to Office365, Exchange Online specifically.  As I’ll be learning new skills as I go I’ll be blogging my progress, as much as a reference for myself as anyone else who may find my mistakes useful to learn from.  The move to Exchange was a slightly unexpected one but experience with our online services and PowerShell scripting should be very useful in the long run.

I’ll still be blogging about my other projects on here so don’t fear, it wont be all cloudy.