%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe
Run Get-AppxPackage -AllUser | Remove-AppxPackage (Don’t mind the wall of blood)
Run Get-AppxPackage -AllUser | Remove-AppxProvisionedPackage -Online (Don’t mind the wall of blood)
C:\Windows\System32\Sysprep\Panther\setupact.log
Remove-appxpackage -AllUsers Microsoft.BingNews_4.21.2212.0_x64__8wekyb3d8bbwe
Get-AppxPackage -alluser | Where PublisherId -eq 8wekyb3d8bbwe | Where-Object {$_.PackageFullName -like “Microsoft.Ink.Handwriting.Main.en*”} | Remove-AppxPackage -AllUsers
I was able to uninstall an app like this:
- Go to
KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications\
. Look for the app’s package name - Backup the key (right click, export)
- Re/run the
Remove-AppxPackage -Package <package-name> -AllUsers
command
Import-Module Appx
Import-Module Dism
# Get all packages Where PublisherId -eq 8wekyb3d8bbwe and remove them
Get-AppxPackage -AllUsers | Where PublisherId -eq 8wekyb3d8bbwe | Remove-AppxPackage
# Get all packages from DISM
$packages = dism /online /get-packages
# Filter packages containing 'handwriting'
$targetPackages = $packages -split "`r`n" | Where-Object { $_ -like "*handwriting*" }
# Extract package names
$packageNames = $targetPackages | ForEach-Object {
if ($_ -match "Package Identity : (?<name>.*)") {
$Matches.name.trim()
}
}
# Remove each identified package
foreach ($pkg in $packageNames) {
if ($pkg) {
Write-Host "Removing package: $pkg"
dism /online /remove-package /packagename:$pkg /NoRestart
}
}
Write-Host "Done removing packages."