Login Script for Office 365 PowerShell


365 login script to simplify administration

#############################################################

You may need to code sign the PowerShell scripts or recreate the scripts on your local machine

#############################################################

I finally got fed up with the login process for Office 365 PowerShell, so I have created a set of scripts to simplify login.

How it Works:

Powershell Script to manage the login process.

Alias created in a .PS1 file

Script to copy alias to the  %SystemRoot%\system32\Windowspowershell\v1.0 Directory

Setup

Please see the following link and download:

Office 365 Login Script

Extract the attached Zip file to the root of C:\office365

Open PowerShell up using Administrator Privileges.

Run the Script: C:\office365>.\AliasInstallScript.ps1

Office365power2

Now your Alias is configured you can access the login script on PowerShell start-up without importing and running several commands.

from the Powershell cmd line enter: 365login

365powershell3

Select option 1 to login,

when you login, you will be presented with the following:

365powershell4

Enter your Office 365 Login credentials and click ok.

You will then see the following:

365powershell5

To test connectivity run a Get-Mailbox, or Get-MSOLUser

you can disconnect from sessions by entering 365login and selecting option 2.

365powershell6

4 thoughts on “Login Script for Office 365 PowerShell

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s