Active Directory, Exchange, Windows, Lync, Skype for Business and Office 365 how-to's and tips and tricks as we pick them up. Feel free to pass on anything you see here, and PLEASE subscribe to our RSS feed, and leave comments if you find our posts helpful!

Monday, April 20, 2015

Install-PowerShellOptions.ps1 - Script to deploy and connect to on premises and cloud Microsoft services

I developed the Install-PowerShellOptions.ps1 script for one reason. I am constantly looking for the right shell download, or connection string, and after years of having my handy EXOConnect.ps1, I wanted one that also pre-loaded the modules for me.

The menu is now interactive, and build the Install or Connect options based on what software is already installed on your PC. When you choose an Install Step the script will download and launch the installers required for your OS. Some require Elevated access (they should prompt you) The connect steps allow you to connect the module/session for the requested PowerShell service. Once the module loads (or fails to load, check for errors) you are returned the menu, at which time you can load an additional module, or hit 99 to exit and begin using the modules you have loaded.

Please report any bugs or feature requests via comments on this page or on the Q&A on the Download link. If you are upgrading from older versions of versions, I recommend manually uninstalling the old bits, then running this script to download and deploy the latest code.

1.2 - Added Azure IaaS PowerShell support, made menu more interactive, checking installs and recommending install or connect (coded in upgrade, but logic not in place yet), Ability to set cloud and on premises credentials per session