Cant Uninstall Spotify In Apps And Features
Select the PackageFullName of the app you want to remove and press Enter to copy it. Now uninstall the Windows 10 built-in app using the command below. Get-AppxPackage -allusers.PackageFullName. Remove-AppxPackage. Naturally, replace PackageFullName with the actual package name of the app. Find out how to set up and use Spotify. Learn about features, troubleshoot issues, and get answers to questions. Everything you need to stay in tune. For listeners, artists, brands, developers and music fans alike. # Use this PowerShell script to remove any built-in or auto-installed # Windows 10 apps that are installed on your computer. # ##### # # Add a # in front of each line you do NOT want to remove # Remove the # in front of each line you DO want to remove # By default, I've commented out apps that most people will want to leave on # # To run the.
- Uninstall Spotify App
- Why Can't I Uninstall Spotify
- Cant Uninstall Spotify In Apps And Features Windows 10
Solution A:
%APPDATA%SpotifySpotify.exe/UNINSTALL /SILENT
Solution B:
1. In order to run this in KACE as a script start an Online-Shell-Script (script.bat) containing:
powershell.exe -nologo -executionpolicy bypass -noprofile -file uninstall.ps1
2. In Dependendies add 'uninstall.ps1' containing following PS-Script:
# set working directory
$CurrentLocation = Split-Path -Parent $MyInvocation.MyCommand.Path;
# end running processes
$RunningApp = Get-Process -Name 'spotify*'
If ($RunningApp) {
Stop-Process -InputObject $RunningApp -Force
}
Uninstall Spotify App
# manually delete spotify for each user
$UserFolders = Get-ChildItem -Directory 'c:users'
ForEach ($Folder in $UserFolders) {
$WorkingDir = 'C:Users' + '$Folder'
If (Test-Path $WorkingDirappdataroamingspotify) {
Start-Process -FilePath $WorkingDirappdataroamingspotifyspotify.exe -ArgumentList '/uninstall /silent'
Start-Sleep -s 10
Remove-Item $WorkingDirappdataroamingspotify -Force -Recurse
Remove-Item $WorkingDirappdatalocalspotify -Force -Recurse
Remove-Item $WorkingDirdesktopspotify.lnk -Force -Recurse
}
}
# remove leftover listing in programs and features
$UserKey = Get-ChildItem -Path Microsoft.PowerShell.CoreRegistry::HKEY_USERS
ForEach ($Key in $UserKey) {
If (Test-Path Microsoft.PowerShell.CoreRegistry::$KeySOFTWAREMicrosoftWindowsCurrentVersionUninstallSpotify) {
Remove-Item Microsoft.PowerShell.CoreRegistry::$KeySOFTWAREMicrosoftWindowsCurrentVersionUninstallSpotify -Force -Recurse
}
}
Why Can't I Uninstall Spotify
Cant Uninstall Spotify In Apps And Features Windows 10
Thank you Channeler and kitco for your great help!