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

Get-WindowsUpdate : Value does not fall within the expected range. #14

Open
haplopeart opened this issue Feb 21, 2024 · 7 comments
Open

Comments

@haplopeart
Copy link

PS C:\Program Files\Windows Defender> Get-WindowsUpdate -MicrosoftUpdate -Verbose -Download -AcceptAll -Install -Debug
DEBUG: 2/21/2024 2:25:33 PM CmdletStart: Get-WindowsUpdate
DEBUG: 2/21/2024 2:25:39 PM ParameterSetName: MicrosoftUpdate
DEBUG: 2/21/2024 2:25:39 PM Set pre search criteria: IsInstalled = 0
DEBUG: 2/21/2024 2:25:39 PM Set pre search criteria: IsHidden = 0
DEBUG: 2/21/2024 2:25:39 PM Search criteria is: IsInstalled = 0 and IsHidden = 0
DEBUG: 2/21/2024 2:25:39 PM CYGNUSX1: Connecting...
DEBUG: 2/21/2024 2:25:40 PM Module version: 2.2.1.4
DEBUG: 2/21/2024 2:25:40 PM Dll version: 2.2.1.4
DEBUG: 2/21/2024 2:25:40 PM UpdateSessionObj mode: Local
DEBUG: 2/21/2024 2:25:40 PM ServiceManagerObj mode: Local
DEBUG: 2/21/2024 2:25:40 PM Set source of updates to Microsof Update
DEBUG: 2/21/2024 2:25:40 PM Search for ServiceID. Set source of updates to Microsoft Update
VERBOSE: CYGNUSX1 (2/21/2024 2:25:40 PM): Connecting to Microsoft Update server. Please wait...
VERBOSE: Found [5] Updates in pre search criteria
DEBUG: 2/21/2024 2:25:51 PM Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12) - Current Channel (Staged)
DEBUG: 2/21/2024 2:25:51 PM Update was not filtered
DEBUG: 2/21/2024 2:25:51 PM Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.405.391.0) - Current Channel (Broad)
DEBUG: 2/21/2024 2:25:51 PM Update was not filtered
DEBUG: 2/21/2024 2:25:51 PM Realtek - Net - 1153.13.420.2023
DEBUG: 2/21/2024 2:25:51 PM Update was not filtered
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -MicrosoftUpdate -Verbose -Download -AcceptAll -Ins ...
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\Program Files\Windows Defender>

@seldur
Copy link

seldur commented Feb 21, 2024

There's a conflict between -Install and -Download - one or the other can be used at a time.

@haplopeart
Copy link
Author

Nothing seems to be working
PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Verbose -AcceptAll -Install
VERBOSE: CYGNUSX1 (2/22/2024 4:21:56 AM): Connecting to Microsoft Update server. Please wait...
VERBOSE: Found [5] Updates in pre search criteria
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -MicrosoftUpdate -Verbose -AcceptAll -Install
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Verbose -AcceptAll
VERBOSE: CYGNUSX1 (2/22/2024 4:23:04 AM): Connecting to Microsoft Update server. Please wait...
VERBOSE: Found [5] Updates in pre search criteria
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -MicrosoftUpdate -Verbose -AcceptAll
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -MicrosoftUpdate
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32> Get-WindowsUpdate
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32>

@haplopeart
Copy link
Author

Took some additional poking but it sorta looks like it is choking when it trys to process a driver update.

Specifying an update ID gets it through the entire list of the updates, then keeps it from processing the driver updates. Telling it to process driver updates produces a fail. Limiting it to software updates, succeeds to starting the download of the latest insider preview.

PS C:\WINDOWS\system32> Get-WindowsUpdate -Debug
DEBUG: 2/22/2024 11:57:51 AM CmdletStart: Get-WindowsUpdate
DEBUG: 2/22/2024 11:57:57 AM ParameterSetName: Default
DEBUG: 2/22/2024 11:58:01 AM Set pre search criteria: IsInstalled = 0
DEBUG: 2/22/2024 11:58:05 AM Set pre search criteria: IsHidden = 0
DEBUG: 2/22/2024 11:58:07 AM Search criteria is: IsInstalled = 0 and IsHidden = 0
DEBUG: 2/22/2024 11:58:09 AM CYGNUSX1: Connecting...
DEBUG: 2/22/2024 11:58:11 AM Module version: 2.2.1.4
DEBUG: 2/22/2024 11:58:14 AM Dll version: 2.2.1.4
DEBUG: 2/22/2024 11:58:17 AM UpdateSessionObj mode: Local
DEBUG: 2/22/2024 11:58:19 AM ServiceManagerObj mode: Local
DEBUG: 2/22/2024 11:58:21 AM Try Default. Set source of updates to Microsoft Update
VERBOSE: CYGNUSX1 (2/22/2024 11:58:24 AM): Connecting to Microsoft Update server. Please wait...
VERBOSE: Found [6] Updates in pre search criteria
DEBUG: 2/22/2024 11:58:43 AM Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12) - Current Channel (Staged
)
DEBUG: 2/22/2024 11:58:46 AM Update was not filtered
DEBUG: 2/22/2024 11:58:49 AM Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.405.434.0) - Current Channel (Broad)
DEBUG: 2/22/2024 11:58:53 AM Update was not filtered
DEBUG: 2/22/2024 11:58:54 AM Realtek - Net - 1153.13.420.2023
DEBUG: 2/22/2024 11:58:56 AM Update was not filtered
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -Debug
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32> Get-WindowsUpdate -Debug -MicrosoftUpdate -Install -KBArticleID KB4052623
DEBUG: 2/22/2024 12:01:11 PM CmdletStart: Get-WindowsUpdate
DEBUG: 2/22/2024 12:01:14 PM ParameterSetName: MicrosoftUpdate
DEBUG: 2/22/2024 12:01:15 PM Set pre search criteria: IsInstalled = 0
DEBUG: 2/22/2024 12:01:15 PM Set pre search criteria: IsHidden = 0
DEBUG: 2/22/2024 12:01:16 PM Search criteria is: IsInstalled = 0 and IsHidden = 0
DEBUG: 2/22/2024 12:01:17 PM CYGNUSX1: Connecting...
DEBUG: 2/22/2024 12:01:18 PM Module version: 2.2.1.4
DEBUG: 2/22/2024 12:01:20 PM Dll version: 2.2.1.4
DEBUG: 2/22/2024 12:01:21 PM UpdateSessionObj mode: Local
DEBUG: 2/22/2024 12:01:22 PM ServiceManagerObj mode: Local
DEBUG: 2/22/2024 12:01:23 PM Set source of updates to Microsof Update
DEBUG: 2/22/2024 12:01:25 PM Search for ServiceID. Set source of updates to Microsoft Update
VERBOSE: CYGNUSX1 (2/22/2024 12:01:27 PM): Connecting to Microsoft Update server. Please wait...
VERBOSE: Found [6] Updates in pre search criteria
DEBUG: 2/22/2024 12:01:44 PM Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12) - Current Channel (Staged
)
DEBUG: 2/22/2024 12:01:46 PM Set post search criteria: KBArticleIDs = KB4052623
DEBUG: 2/22/2024 12:01:50 PM UpdateAccess: True
DEBUG: 2/22/2024 12:01:52 PM Update was not filtered
DEBUG: 2/22/2024 12:01:54 PM Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.405.434.0) - Current Channel (Broad)
DEBUG: 2/22/2024 12:01:57 PM Set post search criteria: KBArticleIDs = KB4052623
DEBUG: 2/22/2024 12:01:59 PM UpdateAccess: False
DEBUG: 2/22/2024 12:02:01 PM Realtek - Net - 1153.13.420.2023
DEBUG: 2/22/2024 12:02:02 PM Set post search criteria: KBArticleIDs = KB4052623
DEBUG: 2/22/2024 12:02:04 PM UpdateAccess: False
DEBUG: 2/22/2024 12:02:05 PM Intel Corporation - Bluetooth - 23.30.0.3
DEBUG: 2/22/2024 12:02:06 PM Set post search criteria: KBArticleIDs = KB4052623
DEBUG: 2/22/2024 12:02:08 PM UpdateAccess: False
DEBUG: 2/22/2024 12:02:09 PM Intel - net - 23.30.0.6
DEBUG: 2/22/2024 12:02:10 PM Set post search criteria: KBArticleIDs = KB4052623
DEBUG: 2/22/2024 12:02:11 PM UpdateAccess: False
DEBUG: 2/22/2024 12:02:12 PM Windows 11 Insider Preview 26063.1 (ge_release)
DEBUG: 2/22/2024 12:02:13 PM Set post search criteria: KBArticleIDs = KB4052623
DEBUG: 2/22/2024 12:02:15 PM UpdateAccess: False
VERBOSE: Found [1] Updates in post search criteria
DEBUG: 2/22/2024 12:02:19 PM Show update to accept: Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12) -
Current Channel (Staged)
DEBUG: 2/22/2024 12:02:26 PM Accepted

X ComputerName Result KB Size Title


1 CYGNUSX1 Accepted KB4052623 12MB Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12) - Curre...
VERBOSE: Accepted [1] Updates ready to Download
DEBUG: 2/22/2024 12:02:38 PM Show update to download: Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12)

  • Current Channel (Staged)
    DEBUG: 2/22/2024 12:03:16 PM Downloaded
    2 CYGNUSX1 Downloaded KB4052623 12MB Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12) - Curre...
    VERBOSE: Downloaded [1] Updates ready to Install
    DEBUG: 2/22/2024 12:10:39 PM Show update to install: Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12) -
    Current Channel (Staged)
    DEBUG: 2/22/2024 12:10:39 PM Installed
    DEBUG: 2/22/2024 12:10:39 PM Reboot is required
    3 CYGNUSX1 Installed KB4052623 12MB Update for Microsoft Defender Antivirus antimalware platform - KB4052623 (Version 4.18.24010.12) - Curre...
    VERBOSE: Installed [1] Updates
    DEBUG: 2/22/2024 12:10:39 PM Return installed update list
    DEBUG: 2/22/2024 12:10:39 PM CmdletEnd

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Install -KBArticleID KB2267602

X ComputerName Result KB Size Title


1 CYGNUSX1 Accepted KB2267602 1GB Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.405.434.0) - Curren...
2 CYGNUSX1 Downloaded KB2267602 1GB Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.405.434.0) - Curren...
3 CYGNUSX1 Installed KB2267602 1GB Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.405.434.0) - Curren...

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Install -Title "Realtek - Net - 1153.13.420.2023"
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -MicrosoftUpdate -Install -Title "Realtek - Net - 1 ...
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Install -Title "Intel - net - 23.30.0.6"
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -MicrosoftUpdate -Install -Title "Intel - net - 23. ...
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Install -Title "Windows 11 Insider Preview 26063.1 (ge_release)"

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Install -AcceptAll
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -MicrosoftUpdate -Install -AcceptAll
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Install -UpdateType Driver
Get-WindowsUpdate : Value does not fall within the expected range.
At line:1 char:1

  • Get-WindowsUpdate -MicrosoftUpdate -Install -UpdateType Driver
  •   + CategoryInfo          : NotSpecified: (:) [Get-WindowsUpdate], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,PSWindowsUpdate.GetWindowsUpdate
    
    
    

PS C:\WINDOWS\system32> Get-WindowsUpdate -MicrosoftUpdate -Install -UpdateType Software

X ComputerName Result KB Size Title


1 CYGNUSX1 Accepted 95GB Windows 11 Insider Preview 26063.1 (ge_release)

@re7gog
Copy link

re7gog commented Apr 5, 2024

Same problem

@haplopeart
Copy link
Author

Same problem

Does limiting it to just software updates resolve?

@re7gog
Copy link

re7gog commented Apr 7, 2024

Same problem

Does limiting it to just software updates resolve?

I can't run any commands ☹️

@deltasierra-ufc
Copy link

I ran
reset-wucomponents
and this fixed the problem for me.

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

4 participants