A lot of time has passed since I haven’t updated my script and Microsoft once again forced me to update it. Again they’ve decided to change something on their download pages. Thank you Microsoft for changing your websites so I can advance my PowerShell skills. The script is now version 2.5 and here are the changes:
- Using invoke-webrequest was causing cookie prompt dialog to appear due to changes on Microsoft download pages. Replaced it with .net framework function. Thanks to my co-worker Georgi Ivanov for helping me in this.
- Replaced Write-Host with Write-Output. Accodring to Jeffrey Snover and Don Jones a puppy dies every time someone is using Write-Host 🙂
- Added additional logic to check every file if exists not only the version folder
- MP version, Published date and download links are now being get by different way as invoke-webrequest is not used
New version you can download from the following locations: