8000 Get-LatestServicingStackUpdate -OperatingSystem WindowsServer fails · Issue #72 · aaronparker/LatestUpdate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 28, 2021. It is now read-only.
This repository was archived by the owner on Feb 28, 2021. It is now read-only.
Get-LatestServicingStackUpdate -OperatingSystem WindowsServer fails #72
Open
@yellowpanda

Description

@yellowpanda

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 560F 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...}                  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0