https://github.com/PowerShellCrack/MSFTLinkDownloaderPSModule
A module that will download files from Microsoft Link ID's
https://github.com/PowerShellCrack/MSFTLinkDownloaderPSModule
Last synced: 4 months ago
JSON representation
A module that will download files from Microsoft Link ID's
- Host: GitHub
- URL: https://github.com/PowerShellCrack/MSFTLinkDownloaderPSModule
- Owner: PowerShellCrack
- License: mit
- Created: 2022-06-05T15:59:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-09T13:35:54.000Z (about 2 years ago)
- Last Synced: 2024-11-07T07:13:16.227Z (5 months ago)
- Language: PowerShell
- Size: 363 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - PowerShellCrack/MSFTLinkDownloaderPSModule - A module that will download files from Microsoft Link ID's (PowerShell)
README
# LGPO PowerShell module
A module that will download files from Microsoft Link ID's
## Prerequisites
None
## Cmdlets
- **Get-MsftLink** - Get the download url from linkID; export to object
- **Invoke-MSFTLinkDownload** - Downloads file from linkID## Install
```powershell
Install-Module MSFTLinkDownloader -Force
Import-Module MSFTLinkDownloader
```## Examples
```powershell
#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```
## Passthru
The output when using _-Passthru_ parameter will create object data that can be further used in a pipeline or script
