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

Could not find the module '<xWindowsUpdate, 3.0.0>'. #232

Open
mjmeans opened this issue Apr 30, 2024 · 1 comment
Open

Could not find the module '<xWindowsUpdate, 3.0.0>'. #232

mjmeans opened this issue Apr 30, 2024 · 1 comment

Comments

@mjmeans
Copy link

mjmeans commented Apr 30, 2024

This issue is not identical to the other one with the same name.

The remote system is a new Windows Server 2016 Essentials VM under Hyper-V on an Internal Network Switch.

When running Install-KbUpdate to install the update on remote VM this error is always reported:

Exception calling "Create" with "1" argument(s): "At line:3 char:29
+ ...             Import-DscResource -ModuleName xWindowsUpdate -ModuleVers ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Could not find the module '<xWindowsUpdate, 3.0.0>'."
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ParseException
    + PSComputerName        : localhost

I have tried installing kbupdate on the remote, but it did not solve the problem.

I have tried installing xWindowsUpdate 3.0.0 on the local and remote, but this version doesn't exist in the PSGallery. There is version 3.0.0-prerelease0001, and I tried that, but it doesn't resolve the problem either.

What do I need to install on the local and/or remote to resolve this error?

@mjmeans
Copy link
Author

mjmeans commented Apr 30, 2024

Okay, so on Windows Server 2016, apparently this is needed:

[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Install-Module PowerShellGet -AllowClobber -Force -SkipPublisherCheck
Install-Module xWindowsUpdate - AllowPrerelease -RequiredVersion '3.0.0-preview0001'

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

No branches or pull requests

1 participant