Closed texhex closed 5 years ago
This change has been done for BCU Get/Set calls, and in my first test calls it works as expected. I need to get a PS 4.0 machine to fully test it; this might take some days.
I got confirmation from a colleague yesterday that all his tests were successful, the BCU calls now work correctly with PS 4.0 and no errors were reported for 5.1. Closing issue.
BIOS Sledgehammer fails in the step "Verifying BIOS Configuration Utility (BCU) can communicate with BIOS." with the message:
The line in question is 652:
This was last changed in commit 7850d426064acf07807d67258819356f46862d34.
It works properly in case the value $PSVersionTable.PSVersion.Major = 5. In case the value $PSVersionTable.PSVersion.Major = 4, the grave accents have to be removed:
The actual problem is that in PowerShell 4.0, the grace accents seem not to be working as expected, so PowerShell somehow creates several additional parameters and BCU will only read the BIOS value name until the space.
What seems to do the trick is to double escape the quotation marks like this:
It needs to checked if this also works for 5.0 and if also the Set BIOS Value function needs rework.