I had a very interesting workshop with administrators and IT guys from a customer (a customer of a partner to be correct). One of the very first questions, like so often, was: Is it possible to install all PowerShell requirements for Office 365 with a single command?

The easy answer is: No, it is not… Sorry!
The true, and longer answer must be: There are a lot of scripts available on Technet, or GitHub (and elsewhere) that can do the job for you.

However, we then started to build an individual script that can do exactly that: Download and install all required PowerShell Modules for Office 365.

We defined the following requirements:

  • Do each step in an separate function (Agreed, that makes the code more complex)
  • Use an external parameter File (that contains the URL)
  • Make it robust (e.g. implement some error handling)

Here is what we created:

If you can’t see the Source, your browser don’t support Java scripts (Shame on you, by the way) and you need to open the Gist directly on GitHub.

Feel free to use this sample and please adopt it if something is not like you want it. That is the main reason I decided to publish this.