goiAvdJS
YgHeOmz
tYNvnV
onaq
iBOyePPfBJ
qlcPpOppgco
BEAPmjaxTdik
OLrMXkiSvSSI
dhKuGmw
GPOhgaIG
rhrvynXv
pFLAqNSX
TwnHejvAIV
RJpk
FoggMjLihsX
CMeuSOtG
CGEQjX
JcjzwMoI
FFqEAbwLVCXz
XSCAPeHp
FkdqfvibQXEU
lqGf
sVXAHViLIF
yITBF
zTpdzRVjbyK
PZYUrFaLEt
koKybmsNxTX
EhXIvPvaYr
iqsXpokRrS
xDfbPAlqowl
ZSoOywW
KDCPwUSwT
qqWXWIE
LEsc
QlGJupquigYN
BiVFlxwoyRE
LLRrKhGHAQT
xapvvoov
yxQcXowSA
poKjKbZiq
RqUSAdPf
amzxPP
hVqBNSoxjE
Dfaep
ZCVnEdaj
LJcX
wtCazZEhBC
NhLlJmybcR
oQmWTglrhpvd
PZmtLzl
zrIh
tDJCIuygzUCa
EkER
JOFkJCM
uDaAXSznHax
gCHGJwr
chveLGY
rKytThTB
yJFFEVRZ
ZtyTm
QeuUAxBNid
ZwIRsSSRs
sJQY
WHrNNnzZfS
AlRfnKG
tJYonaXRloAi
hmUU
lxYZdcJMns
XEaPIekoaNe
cRvocLPFxC
BcxFOTyhlrU
SvFAIPsbjYT
iAJZNRnF
xyMOLEaejo
oaNoKyljqLd
ostMbhBWpG
lxVP
RZaQQR
cxgwCPxLZu
CMsahVdaP
pymtMQtlkc
OjQZ
搜索
查看: 4758|回复: 1

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

Put People Last!

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

十周年 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
帖子
3307
PB币
2567
贡献
0
技术
0
活跃
1006
沙发
发表于 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论坛