-
Notifications
You must be signed in to change notification settings - Fork 24
Alternate URL Repositories? #35
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
Comments
Hello, could you give me the exact error(s) you are getting when trying to access that repository with LSUClient? Because it is working fine here. There are no other official repositories that I am aware of but I have nearly finished the feature for LSUClient to be able to use your own, internal repository instead (#17) The work on that is being done on the feat-customrepository branch. |
Seems I needed to test it with a few more model numbers, and that Australian model numbers are not in the format that is currently expected. Get-LSUpdate -Model 80VB 404 Error Do not match. |
So the reason all of those longer model numbers did not match is because You can go to the Lenovo Warranty Check website ( https://pcsupport.lenovo.com/en/us/warrantylookup#/ ) and put in any of these model numbers where it asks for a serial number (e.g. As for why you got 404 error(s) for A 404 could mean a file is just missing on Lenovos' servers (that happens) or you're being blocked from accessing it, possibly by a company firewall on your network etc. Either way, it's not a terminating error so the command should continue after the error and still show you available updates. |
Thanks for the extra information, will check the longer ones and if they match will just always shorten it to the first 4 characters. Originally thought it was a firewall blocking but then tried at different locations and same thing! Verbose output below. VERBOSE: Lenovo Model is: 80VB VERBOSE: A total of 27 driver packages are available for this computer model. InvalidOperation: C:\Users~\OneDrive - Levit8 PTY LTD\Documents\PowerShell\Modules\LSUClient\1.1.0\private\Invoke-PackageCommand.ps1:13:5 Seems 20RW is working better now- VERBOSE: Lenovo Model is: 20RW VERBOSE: A total of 33 driver packages are available for this computer model. VERBOSE: Got unsupported version format from OS: '8.6.10402.11528 8.6.10402.11528' VERBOSE: Unsupported dependency encountered: _WindowsBuildVersion VERBOSE: Unsupported dependency encountered: _WindowsBuildVersion VERBOSE: Unsupported dependency encountered: _OSNLang VERBOSE: Unsupported dependency encountered: _WindowsBuildVersion VERBOSE: Package https://download.lenovo.com/pccbbs/mobiles/wldcgt09_2_.xml doesn't have a DetectInstall section |
Well the first thing I'm noticing is that you're using a very old version of the module (1.1.0). If you look on the PowerShell Gallery or here on GitHub on the releases page you can see that the current version is 1.2.5. You should regularly update your PowerShell modules, LSUClient included, because not only do the newer versions have bugfixes for known problems and more features but Lenovo also updates their repositories and adds new drivers etc. that sometimes only the newer versions of LSUClient can work with properly - outdated versions can give you incomplete or inaccurate results, particularly during the update search process of With that being said, I tried |
Not sure how that happened and didn't even think to check, was a fresh install of the LSUclient from PSGallery that day I originally posted too!!! |
this makes no difference when running Get-LSUpdate in a normal PowerShell session, but some deployment/script-running solutions wrap the entire script in a big try-catch which triggered on any .NET exception from DownloadFile. Try-Catching the DownloadFile call separately and "downgrading" any exceptions to a PowerShell-native error prevents any unintended script terminations in such cases. I still recommend NOT wrapping LSUClient scripts in a global try-catch whenever it is possible to avoid it. also referencing previous issues #35, #36, #37 and #65
Seems that the https://download.lenovo.com/ repo is not working currently, is there other known ones?
The text was updated successfully, but these errors were encountered: