Trouble Installing PSWindowsUpdate Module with Invoke-Command

0
8
Asked By TechWhizz123 On

I'm working on installing the pswindowsupdate module on a Windows 2016 server and running into some issues. When I try to install the module directly from the server console, it works just fine. However, when I attempt to do it using invoke-command, I get a warning that says 'Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.' I've already confirmed that TLS 1.2 is enabled on the server. What could be causing this problem? Any insights would be appreciated!

2 Answers

Answered By ScriptWizard45 On

Have you checked the script you're running? Just to be thorough, can you share it? Sometimes it's easy to miss a small detail that can cause issues.

Answered By NetNinja87 On

Also, you might want to verify if you can use Invoke-WebRequest on the gallery address or any address for that matter. In some cases, security products might block web requests in a WinRM session to prevent potential worms.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.