Install-OVS.ps1 fails on systems localized to anything but English #6562
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
reported-by/end-user
Issues reported by end users.
Describe the bug
The
getInstalledOVSDrivers
part of theantrea/hack/windows/Install-OVS.ps1
Line 309 in 6e4ff87
pnputil.exe
application. The output of this command is localized.On my server running in German the output looks like this:
In the end this causes the detection if the driver is up to date or not to fail.
To Reproduce
On a server running a language other than English, run the
Install-OVS.ps1
script twice. You'll find that the detection of the already installed driver fails at the second run.Expected
The script either warns about potential problem if it's running on a system with another language, or it works correctly.
Actual behavior
Parsing the existing drivers completely fails with all fields in the driver custom objects set to
$null
. This causes the script to consider any installed driver to be out of date.Versions:
The affected version of the script is linked in the description.
Suggested solution:
Using the powershell commands
Get-PnpDevice
andGet-PnpDeviceProperty
it should be possible to get all the required information without relying on localization of the operating system.The text was updated successfully, but these errors were encountered: