If you are running an older version of TLS and try to interact with the PowerShell Gallery you may see error messages like:

WARNING: Unable to resolve package source ‘https://www.powershellgallery.com/api/v2’

The gallery officially only supports TLS 1.2, so you have to use this as a workaround:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 

Read more: https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support