Test Redistributable URIs
Test-VcRedistUri validates the download URIs for the Visual C++ Redistributables by sending a HEAD request to each URI. Use this function to verify that download links are accessible before attempting to download with Save-VcRedist.
Parameters
Required parameters
VcList- An array containing details of the Visual C++ Redistributables fromGet-VcList
Optional parameters
Proxy- Specifies a proxy server for the requestProxyCredential- Specifies credentials for the proxy serverShowProgress- Displays download progress. Progress is hidden by default
Examples
Test all supported Redistributable download URIs:
powershell
Get-VcList | Test-VcRedistUriExample output:
powershell
Result : True
Release : 14
Architecture : x64
Version : 14.50.35719.0
URI : https://aka.ms/vc14/vc_redist.x64.exeTest URIs for a specific release and architecture:
powershell
Get-VcList -Release 2019 -Architecture x64 | Test-VcRedistUriTest all Redistributable URIs including unsupported versions:
powershell
Get-VcList -Export All | Test-VcRedistUriTest URIs via a proxy server:
powershell
Get-VcList | Test-VcRedistUri -Proxy "http://proxy.domain.local"