查看: 5040|回复: 1

[Technology] How to uninstall an app that another user installed(Staged Packages)?

[复制链接]
dcbakkk 发表于 2014-3-1 01:53 | 显示全部楼层 |阅读模式
快御云安全
本帖最后由 dcbakkk 于 2014-3-1 02:06 编辑



Article:
http://stackoverflow.com/questions/13865930/how-to-uninstall-an-app-that-another-user-installed

Cause of the problem:
Windows Update (WU) downloads newer versions of packages you have and  “stages” them as Local System, so that when you go to the storeto  update the apps, the update process is as quick as possible. WUwill  eventually clean up the staged packages that were neverinstalled.
What are some consequences of having "Staged" packages?

1.Staged packages prevent you from installing thatparticular package in development mode

2.Staged packages eat up some disk space, but due tohardlinking, the effect of this is mitigated. If a file is identical betweenmultiple  versions of a package, appx deployment hardlinks the filesinstead of  maintaining two separate copies of the same file.


How do I find the "Staged" packages?

1.In an administrator powershell prompt, the command:

Get-Appxpackage -All

will display all packages on the machine. For a stagedpackage, the  PackageUserInformation will show {S-1-5-18 [Unknownuser]: Staged}

2.Using powershell filtering, to get the list of all stagedpackagefullnames, you could do:

Get-Appxpackage -all |% {if($_.packageuserinformation.installstate -eq"Staged"){$_.packagefullname}} | Remove-AppxPackage

How do I get rid ofthe "Staged" packages?

1.Download  psexec from sysinternals tools,written by Mark Russinovich

2.To get rid of all of them, run in a regular admin/elevatedcommand prompt (not powershell):

psexec -i -d -s powershell

Get-Appxpackage -all |% {if($_.packageuserinformation.installstate -eq"Staged"){$_.packagefullname}} | Remove-AppxPackage



0node 发表于 2021-7-22 17:45 来自手机 | 显示全部楼层
that's all.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋手机版联系我们

Copyright © 2005-2025 PCBeta. All rights reserved.

Powered by Discuz!  CDN加速及安全服务由「快御」提供

请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。

远景在线 ( 苏ICP备17027154号 )|远景论坛 |Win11论坛 |Win10论坛 |Win8论坛 |Win7论坛 |WP论坛 |Office论坛

GMT+8, 2025-1-15 12:18

快速回复 返回顶部 返回列表