Posts

Showing posts from September, 2020

Install-Module - Unable to resolve package source 'https://www.powershellgallery.com/api/v2/'

Image
When you attempt to run any Install-Module or Find-Module cmdlets and get the below error, Error : WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2/' Solution : Run the PowerShell as Administrator and run the below cmdlet, which will enable the TLS 1.2 in the PowerShell which should allow you to execute the Install-Module cmdlets, [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Note : You may run the below cmdlet to check current protocol type used by your PowerShell and also after running the above mentioned cmdlet and ensure it is updated.  [Net.ServicePointManager]::SecurityProtocol

Check PowerShell Version

Image
 You may run the below cmdlet to check the PowerShell version, $PSversionTable Note: This cmdlet is applicable for below operating systems, Windows 7, Windows 8, Windows 8.1 & Windows 10 Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016 & Windows Server 2019 Tip 💡 In order to get an unclipped output in PowerShell, please run the below cmdlet first and then run the actual cmdlet to get an unclipped output. $FormatEnumerationLimit=-1