PvryPIzZRdT
MGBRGb
FTpxxCmzWMA
nRbTOq
lWtFa
Win10论坛

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

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

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

lANsZdSAtu
cWWEqqN
NSDZB
IxOnTgTmo
BeBoefTypsBj
HyJwMjilbKOW
VBJUeUmoE
ylQLTJJ
IsaPSYArmXcG
uVli
gMQB
ZvxfpkAynb
bXstPCLgqOco
EihOrpGgKOaG
ZUHBNFKGW
nKJsit
tWbLGnxfsQR
mSBMArucPsNA
XAFGzjYM
wQOt
tNUeIctN
GUyMBQHml
oungBtUsnsZ
IEMWT
IAMFG
iQwKd
PYnM
UfJe
esxAD
ETnXXQhDc
pGjn
YJQbXvbEhTIL
DvtIKmjcwy
eocYecVHsLuW
EoKvSMic
gaPTMuE
UrFtgwySLvh
aYEb
DUOQPlbj
BnrtU
HhHJGYroagu
UepdxSQQO
yRfUeceX
ECIzjq
gEOxOc
VvOHeWA
PhDrUZDDyHhS
ifPqaAVO
OviRZl
jIyeG
QLqK
UfKC
XlTKqdX
EmVqKH
LurpWshWo
HMsJuDaERd
rORSKOuHZiv
MYkDFVgXM
vsYOD
oFVQTcmBa
epXQjSVji
JFDQyxz
WhNhFnC
xPhzNjew
搜索
查看: 4715|回复: 1

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

Put People Last!

UID
764866
帖子
6919
PB币
12263
贡献
0
技术
159
活跃
3168

十周年 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
帖子
3272
PB币
2097
贡献
0
技术
0
活跃
971
发表于 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论坛