kbupdate
kbupdate copied to clipboard
Could not find the module '<xWindowsUpdate, 3.0.0>'.
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?
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'