Skip to content

Instantly share code, notes, and snippets.

View max-brod's full-sized avatar
💭
I may be slow to respond.

Maximilian Brod max-brod

💭
I may be slow to respond.
  • Ruhrgebiet, Germany
  • 05:01 (UTC +01:00)
View GitHub Profile
# SPDX-FileCopyrightText: Copyright (c) 2023 ave9858 <[email protected]>
# SPDX-License-Identifier: CC0-1.0
$ErrorActionPreference = "Stop"
$regView = [Microsoft.Win32.RegistryView]::Registry32
$microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView).
OpenSubKey('SOFTWARE\Microsoft', $true)
$edgeUWP = "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
$uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge')
$uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'