![](https://video2.skills-academy.com/media/logos/logo_edge.png)
Here's a combined script to uninstall the existing Microsoft Edge and install the specific version of Microsoft Edge Enterprise. For this you need to open PowerShell as Administrator:
# Uninstall default Microsoft Edge
$EdgePackage = Get-AppxPackage -Name Microsoft.MicrosoftEdge.Stable
if ($EdgePackage) {
Remove-AppxPackage -Package $EdgePackage.PackageFullName
Write-Output "Microsoft Edge has been uninstalled."
} else {
Write-Output "Microsoft Edge is not installed."
}
# Path to the Edge Enterprise installer
$InstallerPath = "C:\Path\To\MicrosoftEdgeEnterprise_X64_v115.0.1901.203.msi"
# Install specific version of Edge Enterprise
if (Test-Path $InstallerPath) {
Start-Process msiexec.exe -ArgumentList "/i $InstallerPath /quiet /norestart" -Wait
Write-Output "Microsoft Edge Enterprise version 115.0.1901.203 has been installed."
} else {
Write-Output "Installer not found at $InstallerPath."
}