This month post I a bit of a pick a mix on getting connected to Office 365 and it's services, I have my Office 365 exams coming up and there is lots of PowerShell commands to lean so I thought by building a series of blogs to cover each section it will help me learn what is needed, and hopefully help someone else in the process…
This first blog is a mix-up of each service and where to find the modules and all the PowerShell commands I can find, I hope they can help me and help others in gaining knowledge or just handy having all the resources in one place
NOTE: in order to make this work it would you do either need to have an Office 365 subscription or trail account, you can get set up on an E3 account through this link and hitting the free trail, this will give you access to everything that you need to follow along…
Then we need to download a few modules;
First we need to download and Install the Azure AD Module
The First install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW from the Microsoft Download Center. Then install the Azure Active Directory Module for Windows PowerShell (64-bit version), and click Run to run the installer package.
You will then have Windows Azure AD Module for PowerShell install
Note: You can use Windows PowerShell version 3 upwards.
Then we can connect using the following command
$credentials=get-credential Import-Module MSOnline Connect-MsolService Connect-MSOLService -Credential $credential
Then just to start and make sure you have a connection type: Get-MsolUser
And you are now connected, for more commands to manage users and groups please click here