-
Notifications
You must be signed in to change notification settings - Fork 16
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
Bios Version - Longer then [Major.Minor.Build.Revision] #50
Comments
Could you please post the link to the BIOS with this version, right now I would suspect the -RespectLeadingZeros option of the above mentioned function to be the problem. In case a BIOS version already uses all parts, the function will go bonkers. |
HP EliteBook 830 G5 So your comment makes sense;) The following fix for [1.2.3.4.x] to merge at the end is not needed then. try
} |
Thanks, let me do some tests, I think we can skip the entire -RespectLeadingZeros for those new BIOS versions. |
The change only needs to be done in the function Given that HP now has adapted a system that looks like a real version number, the function is changed that it searches if the version contains only one dot (e.g. 1.03) and only use -RespectLeadingZeros in that case. In any other case, the version number is used as is. This code should also work if HP ever uses full versions like 1.00.03.256. Here's the code part, this is the current version of BiosSledgehammer.ps1. No release so far, I hope to have a first 4.0 Beta release tomorrow. BiosSledgehammer/BiosSledgehammer.ps1 Lines 1093 to 1111 in 668f213
|
Version 4.0.5 (BETA) contains this change, please give it a try. |
Your Fast! *made some other functions/improvements I like to share thoughts about. |
@esoroach Any updates on this please? |
@texhex I can confirm this working on 830 G5. Same errors were occurring before I pulled an updated copy with this fix. |
@dubl3a Thanks for the confirmation. Given that I also tested it in the meantime, I think it's save to close this issue now. |
Newer HP's handle version 1.0.0.0.5
But those wont work with "function ConvertTo-Version()"
MPSXM.psm1
Is there a simple way to make longer Versions Compatible with [System.Version]?
The text was updated successfully, but these errors were encountered: