Wednesday, May 7, 2014

HowTo: Log On To Office 365 Using PowerShell

Overview

Run this PowerShell script to log on to Office 365 Exchange Management Shell and MSOL. When run, the script will prompt you to enter your Office 365 credentials, then connect to both services.

Prerequisites


Download and install Microsoft Online Services Sign-In Assistant for IT Professionals BETA
http://www.microsoft.com/en-us/download/details.aspx?id=39267

Download and install Windows Azure Active Directory Module for Windows PowerShell (64-bit version)
Set-ExecutionPolicy RemoteSigned

Script

Download and save script 365Logon.ps1

Run script
c:\365Logon.ps1


No comments:

Post a Comment