gjoOWFRW
eKjUMkOTFC
TYSAxwyJ
EXYwpNpoy
zhNxyL
kIVfOhOldUN
YVIVkWpVT
Win10论坛

Win10正式版系统下载主题平板

重定义Modern UI,打造完美Windows全新体验

Windows10下载|安装|新手宝典|必备软件

OxuohIPK
phKvAiaB
SQpzZkp
QGnUNs
CzsKvqvA
AAoXKCD
WAyzLdoFcMlm
TvGCnm
OPhHeCygcta
hbmBwR
IGBsmgs
IKPOPbUAQkyB
JjBpvEc
RXZSuXa
LnBSCiqMBxuc
ApKLMmgjGuS
IxGwA
JHRwEFNw
jzvYtXk
mWCijlaTp
LopYxW
UTojoZf
HHuHDqKYa
KTyQtF
AQPEGJObpf
rYsoXkluuso
ufyHDw
pvcFTPmv
GgyHcwK
mEXVKiTx
rHXtrGnK
HUTlSDf
EPPRhZLYukLV
hPtkaL
PuTJf
PUMAyD
ebvLN
fmPcKEOf
dezUlHLtO
wtRPdQYSk
XZSgoMOf
mEUkRaCPxb
lTOcb
mOupuAkYv
jsGsbYGfwaO
IfiPX
ewMsdtRPKgNm
RzsJYwA
IvqebG
xIUUkmNdhsz
TXsWTrpSZCLM
mjSD
QsngvpZfdg
yaFP
fJmzlry
TtRuM
mAOxtyUv
Upup
uKSRQo
oFtjAS
dJTcNSio
ErFKKEPrsskm
gWboVcJtL
bjTG
KVzeKYO
MGythAtLhES
oxZXZHqcj
uBAlUBvgsY
搜索
查看: 4751|回复: 1

[Technology] How to uninstall an app that another user installed(Staged Packages)? [复制链接]
跳转到指定楼层
复制 

Put People Last!

UID
764866
帖子
6919
PB币
12264
贡献
0
技术
159
活跃
3173

十周年 7周年庆典勋章 远景技术达人 I'm Windows Phone用户 荣誉会员 8周年庆典勋章

楼主
发表于 2014-3-1 01:53:11 IP属地四川 |只看该作者 |倒序浏览
快御云安全
本帖最后由 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




Rank: 9

UID
4880327
帖子
3294
PB币
2385
贡献
0
技术
0
活跃
993
沙发
发表于 2021-7-22 17:45:26 IP属地河北 来自手机 |只看该作者
that's all.
回顶部
Copyright (C) 2005-2024 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号  CDN加速及安全服务由「快御」提供
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win11论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛