Re: Uninstall Whatsapp Windows 11 Powershell

0 views
Skip to first unread message
Message has been deleted

Chrystal Dueno

unread,
Jul 8, 2024, 2:19:04 PM7/8/24
to sextenonsback

Sometimes I can just log in or ask someone else to log in to the machine and uninstall the app. Alternatively I can change the application name/id, but one is not always possible and the other is risky (I don't want to check in the changed application id to source control).

uninstall whatsapp windows 11 powershell


Descargar Zip https://tinourl.com/2yP8FA



Caveat / Caution: The command seems to make re-installation (re-provisioning the package using DISM) later very difficult, as it seems to treat is as if each user individually uninstalled the app. Too much to get into here...

Staged packages eat up some disk space, but due to hardlinking, the effect of this is mitigated. If a file is identical between multiple versions of a package, appx deployment hardlinks the files instead of maintaining two separate copies of the same file.

will display all packages on the machine. For a staged package, the PackageUserInformation will show S-1-5-18 [Unknown user]: Staged 2. Using powershell filtering, to get the list of all staged packagefullnames, you could do:

Take ownership of the folders c:\Program Files\WindowsApps and C:\ProgramData\Microsoft\Windows\AppRepository - giving Administrator full access. Make sure TrustedInstaller also has Modify rights as well. You're also taking ownership. If you're unawares, this is done via the Properties on that folder.

If nothing else works for you (for me it didnt either), you can just change your Package Name in your app manifest (just replace last few characters with another characters). When you do this, you will no longer have conflicting packages.

The key for me was to add the -allusers flag, since without it I received an "...because the current user does not have that package installed. Use Get-AppxPackage to see the list of packages installed." error.

I haven't found a way to uninstall an app for a different user, though. Remove-AppxPackage works only for the current user. This makes everything even more interesting if you delete a user having apps installed. At least in prerelease versions of Windows 8 this made it impossible to delete an app he had installed. I managed to successfully avoid such a situation since final release therefore I can't confirm the problem is still present, i.e. apps aren't uninstalled when a user account is deleted.

I just used get-appxpackage -all where name -eq "PackageName" remove-appxpackage -AllUsers on Win 10 v1903 after trying many other variations and it worked. I tested for the package's presence afterwards and it was gone.

This answer is a combination of Auri Rahimzadeh's answer above on TAKEOWN and intika's answer where you modify the StateRepository-Machine.srd using 'DB Browser For SQLite' (downloaded here: DB Browser for SQLite 3), the only difference is I only edited one thing:In PackageUser I changed the value User 3 (Which was the ID of the previous deleted User) to 4 (Which is me, the last created User)

In my case I needed to use:Get-AppxProvisionedPackage -online as opposed toGet-AppxPackage and then correspondingly use Remove-AppxProvisionedPackage -PackageName YourPackageNameHere -Online -AllUsers

EDIT: After deleting the contents of C:\Program Files\Docker and then downloading a fresh Docker MSI, then using the Remove option after it offers Repair or Remove, then finally reinstalling using that MSI, I was able to get around this issue and get the latest version of Docker installed.

Sorry for the delay. I tried to reproduce this bug without success, so I wrote a script that will be ship in the next version but as you cannot uninstall, I dump here the procedure so you can install the latest version.

Just a couple of issues with the powershell script above.
Had issues running with the -Destroy parameter but just evaluetd the functions direct to be able to invoike directly the destroy functions (Stop-MobyLinuxVM, Destroy-Switch, Destroy-MobyLinuxVM).
In your for loop you miss the (underscore) for the current object variable ($) might be related to the message board app. I see it is with the underscore in the ForceRemoveDocker.ps1 of the new release.

d3342ee215
Reply all
Reply to author
Forward
0 new messages