A module that will download files from Microsoft Link ID's
None
- Get-MsftLink - Get the download url from linkID; export to object
- Invoke-MSFTLinkDownload - Downloads file from linkID
Install-Module MSFTLinkDownloader -Force
Import-Module MSFTLinkDownloader
#grab linkID download URLS
Get-MsftLink -LinkID '49117'
#grab linkID download URLS with LGPO in name
Get-MsftLink -LinkID '55319' -Filter 'LGPO'
#grab linkID download URLS for British english language
49117,55319,104223 | Get-MsftLink -Language en-gb
#download file by Link ID with Server in name (overwrite if exists)
Invoke-MsftLinkDownload -LinkID 55319,104223 -Filter 'Server' -DestPath C:\temp\Downloads -Force
#download file by URL (overwrite if exists)
Invoke-MsftLinkDownload -DownloadLink 'https://download.microsoft.com/download/8/5/C/85C25433-A1B0-4FFA-9429-7E023E7DA8D8/LGPO.zip' -DestPath C:\temp\Downloads -Force
#grab linkID download URLS, then download them and export their status
Get-MsftLink -LinkID 49117,104223 | Invoke-MsftLinkDownload -DestPath C:\temp\Downloads -Passthru
#collect linkID data, then download them, show no progress bar and extract them if they are archive files as well a delete the archive when done.
$Links = Get-MsftLink -LinkID 49117,55319,104223
$Links | Invoke-MsftLinkDownload -DestPath C:\temp\Downloads -Passthru -NoProgress -Extract -Cleanup
The output when using -Passthru parameter will create object data that can be further used in a pipeline or script