Skip to content

Instantly share code, notes, and snippets.

@canoas
Last active August 29, 2015 14:00
Show Gist options
  • Save canoas/11380076 to your computer and use it in GitHub Desktop.
Save canoas/11380076 to your computer and use it in GitHub Desktop.

Your Tenant

If your are reading this, you probably already started your Trial of Office365, so in order to connect we will start by augmenting your PowerShell with the right commands (cmdlets).

Import-Module MSOnline

NOTE: If this does not work on your machine, you still haven't installed Sign-in Assistant and/or Windows Azure Active Directory Module for Windows PowerShell

Login to Office365

To start we need ensure we are connected to the remote powershell/webservices. Let's first save your credentials in a variable so you don't have to be always answering this at evry try.

$credential = Get-Credential

Next, let's connect:

Connect-MsolService -Credential $credential

Check you organization data

Let's check if everything is running:

Get-MSOLUser

Back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment