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

Exception setting "_CPUAddressWidth": #99

Closed
IT360BE opened this issue Nov 30, 2023 · 4 comments
Closed

Exception setting "_CPUAddressWidth": #99

IT360BE opened this issue Nov 30, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@IT360BE
Copy link

IT360BE commented Nov 30, 2023

Version

1.6

Computer Model

20S7S02200

Problem

Import-Module .\LSUClient.psm1
$model = "20S7S02200"
Get-LSUpdate -Model $model -All

Throws this :
Exception setting "_CPUAddressWidth": "Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.UInt16"."
At \******\SCCMSTORE\MDM\Lenovo\Offline-Updater\LSUClient-master-1.60\LSUClient.psm1:353 char:13

  •         $this._CPUAddressWidth = [wmisearcher]::new('SELECT Addre ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
    • FullyQualifiedErrorId : ExceptionWhenSetting

WARNING: The repository 'https://download.lenovo.com/catalog' did not contain either a '20S7_Win10.xml' or 'database.xml' file to get packages from
No packages for computer model '20S7' could be retrieved from repository 'https://download.lenovo.com/catalog'
At \*********\SCCMSTORE\MDM\Lenovo\Offline-Updater\LSUClient-master-1.60\public\Get-LSUpdate.ps1:159 char:13

  •         throw "No packages for computer model '${Model}' could be ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (No packages for...vo.com/catalog':String) [], RuntimeException
    • FullyQualifiedErrorId : No packages for computer model '20S7' could be retrieved from repository 'https://download.lenovo.com/catalog'

Additional context

No response

@IT360BE IT360BE added the bug Something isn't working label Nov 30, 2023
@jantari
Copy link
Owner

jantari commented Nov 30, 2023

The first error is a problem in LSUClient, I didn't account for LSUClient running on machines with more than 1 processor, but I totally should have, there's even dual-socket ThinkStations.'

I can fix that soon in the next version, a workaround that should work in the meantime would be to manually set the target CPUAddressWidth you want to get drivers for:

Get-LSUpdate -Model $model -All -MachineCharacteristicsOverride @{'_CPUAddressWidth' = 64}

For the second error, I'm guessing the machine you ran this on just doesn't have internet access to https://download.lenovo.com/catalog ? You can get a little bit more information about the error like this:

$Error.Clear()
Get-LSUpdate -Model $model -All -MachineCharacteristicsOverride @{'_CPUAddressWidth' = 64} -Verbose -Debug
$Error | Select-Object * | Format-List *

if you post the full output of this, it should give a reason why it couldn't connect to the Lenovo site.

@jantari jantari closed this as completed in 763b416 Dec 4, 2023
@jantari
Copy link
Owner

jantari commented Dec 4, 2023

The _CPUAddressWidth error is fixed, and the No packages for computer model ... error is easier to troubleshoot in LSUClient 1.6.1 now

@jantari
Copy link
Owner

jantari commented Dec 8, 2023

oops I just realized my fix didn't actually work as expected and this error still happens

@jantari
Copy link
Owner

jantari commented Jan 23, 2024

Version 1.6.2 is out now and includes this fix (for real this time) 😄

@jantari jantari closed this as completed Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants