Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SecurityProtocolType Tls12 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

L0g0ff
Copy link

@L0g0ff L0g0ff commented Jun 2, 2021

Hi, Thanks for you great work and make your code public 👍

Can you please add the Tls12 line in your code so this will work on Windows 2016 server? The Tls12 line will fix this.

Without the line you get these errors:

PS C:\scripts> .\Run-RemoteWindowsUpdate.ps1 -ComputerName localhost
Connecting to localhost
WARNING: PSWindowsUpdate not found. Installing module
WARNING: MSG:UnableToDownload «https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409» «»
WARNING: Unable to download the list of available providers. Check your internet connection.
WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires
'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.
    + CategoryInfo          : InvalidArgument: (Microsoft.Power...PackageProvider:InstallPackageProvider) [Install-Pac
   kageProvider], Exception
    + FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackagePro
   vider
    + PSComputerName        : localhost

Cannot retrieve the dynamic parameters for the cmdlet. PowerShell Gallery is currently unavailable.  Please try again
later.
    + CategoryInfo          : InvalidArgument: (:) [Set-PSRepository], ParameterBindingException
    + FullyQualifiedErrorId : GetDynamicParametersException,Set-PSRepository
    + PSComputerName        : localhost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants