This PowerShell script can be used to download some of the common cloud (Azure and AWS) management tools available on Windows Platform.
Earlier I had seen Download and Install SharePoint 2013 Prerequisites on Windows Server 2012. However this technet script uses Start-BitsTransfer cmdlet from BitsTransfer module. I was toying with similar idea while working on my last workshop (Cloud Automation Using PowerShell) preparation. Since some of the URLs do redirect the Start-BitsTransfer wasn’t working for me initially.
I started with simple Invoke-WebRequest cmdlet and added second variation to handle redirected URLs and pass it to Start-BitsTransfer. So let’s go through the script and output for the both the approaches.
I am using Downloads directory to store the files. For demo I have created CloudTools folder inside. I already have AWS Tools for Windows PowerShell downloaded in the folder.
I am already into the working directory where the script is saved.
View original post 607 more words