-
Notifications
You must be signed in to change notification settings - Fork 24
Get-LSUpdate error: "An item with the same key has already been added." #76
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
Yea, I noticed this error yesterday as well. lt is new in 1.5.2 - my bad. It happens when multiple different packages for one computer have the same name which I didn't think could be the case. The line that's failing isn't that important though so you should be able to just ignore it for now and I'll fix it in the next release. Thank you for reporting it! |
Looks like it's doing the same thing in our task sequence. I'm going to switch it back to copying the 1.5.1 version and re-image to make sure it's working again. |
@swoonhusker1 Are you maybe setting |
I tried setting ErrorActionPreference to continue and it looks like it's still not working, but like I said if I run it in normal powershell it works fine, so I think it has something to do with Powershell App Deployment Toolkit (PSADT) that I don't understand. I'm going to set the script to install the 1.5.1 version for now. |
psappdeplykit is running in a big try catch loop... that is your issue. |
LSUClient 1.5.3 just released and fixes this. Thanks again for reporting it. |
Version
1.5.2
Computer Model
20S7S02200
Problem
Get-LSUpdate -Model $model -All -Verbose | Where-Object { $_.Installer.Unattended }
throws this error:
Exception calling "Add" with "2" argument(s): "An item with the same key has already been added."
Additional context
No response
The text was updated successfully, but these errors were encountered: