Microsoft Online PowerShell Setup/Update scripts

One of the biggest challenges setting up a PowerShell environment for Microsoft Online is install ALL the different modules for each service into PowerShell. Thankfully, the latest version of PowerShell makes that really easy. All you need to do is:

1. Run your PowerShell environment as an administrator

2. Run install-module

for each service.

Now the challenge is finding all the module names, because unfortunately they are not consistent.

Thus, to make life easier I have uploaded a script to do this for you at my GitHub repository here:

https://github.com/directorcia/Office365/blob/master/o365-setup.ps1

This script will install the following modules for you:

1. Azure AD

2. Azure AD Rights Management

3. Microsoft Teams

4. SharePoint Online

5. Microsoft Online

6. Azure

Unfortunately, at this point in time, the Skype for Business module is a downloadable MSI install, not something we can do inside PowerShell easily.

Of course, once you have these installed, they’ll also need to be updated regularly as updated modules are released. I’ve taken care of that for you also with an module update script here:

https://github.com/directorcia/Office365/blob/master/o365-update.ps1

So you only need to run the install script once to get the modules and then you just need to run the update script to ensure you have the latest version of the modules.

That should make using PowerShell with Microsoft Online easier.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s