MSEdge not detected
Hi Jos, thanks for this great script!
Not sure if this is a quirk in our particular environment, but the Edge version detection in v5.08 does not seem to be working consistently, causing the script to fail
Script is looking for (Get-AppxPackage -Name "Microsoft.MicrosoftEdge.Stable").Version
This package isn't present on some machines:
I've found replacing this section of code
$edgeVersion = (Get-AppxPackage -Name "Microsoft.MicrosoftEdge.Stable").Version
with this instead, seems to solve the problem:
$productPath = $Env:ProgramFiles + " (x86)\Microsoft\Edge\Application\msedge.exe"
If(Test-Path $productPath) {
$productProperty = Get-ItemProperty -Path $productPath
$edgeVersion = $productProperty.VersionInfo.ProductVersion
} Else {
log -text "ERROR: Unable to detect current Edge version" -fout
}
Edited by plasma-tech