This is a tool to backup content from the TechNet gallery before it is taken offline.
Download Invoke-TechNetGalleyBackup.zip from the releases page and unzip. You will also need to download James Cussens Technet migration tool from here https://www.myteamslab.com/2020/05/technet-gallery-to-github-migration-tool.html
More information is available over here
Place both Invoke-TechNetGalleyBackup.ps1 and James Cussens TechNet-Gallery-to-GitHub-Migrator.ps1 in the folder you want to store the archive of the TechNet Gallery. From a PowerShell window run Invoke-TechNetGalleyBackup.ps1 -Category . You may need to adjust the category name depending on the URL 2 notes on that
For App-V there is a bug in the TechNet Gallery preventing the page loading when we sort by date, thus nothing is downloaded.
For Enterprise Mobility & Security use "enterprisemobility%2Bsecurity"
There is currently a bug with James's script and externally hosted images, these will fail if linked to via HTTP. (See this PR for the fix)
The App-V category currently has an issue were I cant scrape the data when sorting by date. Thus the script doesn't download anything.
There is an issue with non-English characters getting mapped to a mess in the file structure. I've yet to look into this one.
Some post names cause issues with invalid filenames. I've been meaning to look into it and send James C a PR but that's not super high on the list of tasks at the moment.
This script is free, open source and licensed under the MIT Licence. Feel free to view the source, fork it, raise issues and submit your improvements via pull requests.