Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Get-LatestServicingStackUpdate -OperatingSystem WindowsServer fails #72

Open
yellowpanda opened this issue Feb 26, 2021 · 0 comments
Open

Comments

@yellowpanda
Copy link

Expected Behavior

get-help Get-LatestServicingStackUpdate -examples

Return

...

    -------------------------- EXAMPLE 2 --------------------------
    
    PS C:\>Get-LatestServicingStackUpdate -OperatingSystem WindowsServer
    
    This commands reads the the Windows 10 update history feed and returns an object that lists the most recent Windows Server 2016, 2019 and Semi-Annual Channel Servicing Stack Updates.

Expect that the example work.

Current Behavior

When I try this, it fails:

Get-LatestServicingStackUpdate -OperatingSystem WindowsServer

Failure Information (for bugs)

Get-LatestServicingStackUpdate : Cannot validate argument on parameter 'OperatingSystem'. The " $_ -in $script:resourceStrings.ParameterValues.VersionsAll " validation script for the argumen
t with value "WindowsServer" did not return a result of True. Determine why the validation script failed, and then try the command again.
At line:1 char:49
+ Get-LatestServicingStackUpdate -OperatingSystem WindowsServer
+                                                 ~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-LatestServicingStackUpdate], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Get-LatestServicingStackUpdate

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Step 1
    Call Get-LatestServicingStackUpdate -OperatingSystem WindowsServer

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • LatestUpdate Version: Use Get-Module -ListAvailable LatestUpdate
PS C:\Windows\system32> Get-Module -ListAvailable LatestUpdate


    Directory: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                    
Script     3.0.171    LatestUpdate                        {Get-LatestAdobeFlashUpdate, Get-LatestCumulativeUpdate, Get-LatestMonthlyRollup, Get-LatestNetFrameworkUpdate...}                  
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant