Install Dynamics 365 for Outlook without an Internet connection using PowerShell

Today I had the need to follow this Technet article and was a little annoyed that I had to manually create all of the folders and download and rename all of these files manually. So I have written a powershell script to do steps 2 - 3 for you.

You can get the script here: