删除win10内置应用

对于已经安装完的系统

方法一:使用DISM++,在Appx管理中,找到相应的组件,删除
方法二:在powershell中使用命令删除(详细操作见下面介绍)

对于ISO镜像

方法一:使用MSMG ToolKit 对ISO镜像进行精简修改
方法二:使用DISM++挂载install.wim后进行修改
方法三:使用发布的LTSC版本

以下内容为在一个已经安装完的系统中使用powershell命令删除组件
以管理员权限运行powershell,以下所有命令都在powershell中执行

针对于当前已登录账户中安装的应用

  • 查询所有已安装应用
    Get-AppxPackage | select name,packagefullname

  • 删除指定的已安装应用
    (以“人脉”为例,需要指定完整包名)
    remove-AppxPackage -package Microsoft.People_2020.324.807.0_neutral_~_8wekyb3d8bbwe

  • 删除指定的已安装应用
    (以“人脉”为例,不需要指定完整包名,可以模糊匹配)
    Get-AppxPackage *People* | Remove-Appxpackage

  • 删除所有已安装应用
    (慎用,一些重要的组件例如开始菜单、任务栏等也包含在内,一刀切删除可能会导致系统运行异常)
    Get-AppxPackage *Microsoft* | Remove-AppxPackage

针对于电脑本机的内置app功能模块

  • 查询所有已置备应用
    Get-AppxProvisionedPackage -Online | Select DisplayName, PackageName

  • 删除指定的已置备应用
    (以“人脉”为例,需要指定完整包名)
    remove-AppxProvisionedPackage -PackageName Microsoft.People_2020.324.807.0_neutral_~_8wekyb3d8bbwe -online

  • 删除指定的已置备应用
    (以“人脉”为例,不需要指定完整包名,可以模糊匹配)
    Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*people*"} | remove-appxprovisionedpackage -online

  • 删除电脑中所有的已置备应用
    (慎用,一些有用的组件也包含在内)
    Get-AppxProvisionedPackage -online | Remove-AppxProvisionedPackage -online

针对电脑的所有账户,包括当前账户和将来要建立的新账户

(不包括曾经登录过,但当前未登录的账户,因为未登录账户的已安装app需要登录到相应的账户里去删除,而不能从A账户里去删除B账户里已安装的app)

  • 彻底删除某个应用
    (以“人脉”为例,需要指定完整包名)
remove-AppxPackage -package Microsoft.People_2020.324.807.0_neutral_~_8wekyb3d8bbwe
remove-AppxProvisionedPackage -PackageName Microsoft.People_2020.324.807.0_neutral_~_8wekyb3d8bbwe -online
  • 彻底删除指定的已安装应用
    (以“人脉”为例,不需要指定完整包名,可以模糊匹配)
Get-AppxPackage *People* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*people*"} | remove-appxprovisionedpackage -online

快捷彻底删除一些常见的内置应用

(包括有:人脉、onenote、相机、日历和邮件、Groove音乐、录音机、xbox、地图、视频、3D查看器、天气、手机、纸牌、广告、skype、反馈、小娜)

Get-AppxPackage *People* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*People*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *OneNote* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*OneNote*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Camera* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Camera*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *communicationsapps* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*communicationsapps*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *ZuneMusic* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*ZuneMusic*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *SoundRecorder* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*SoundRecorder*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Xbox* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Xbox*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Maps* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Maps*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *ZuneVideo* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*ZuneVideo*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *3D* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*3D*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *BingWeather* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*BingWeather*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Phone* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Phone*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *SolitaireCollection* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*SolitaireCollection*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Advertising* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Advertising*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Skype* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Skype*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *FeedbackHub* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*FeedbackHub*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Cortana* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Cortana*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *BioEnrollment* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*BioEnrollment*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *AAD.Broker* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*AAD.Broker*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *OOBENetwork* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*OOBENetwork*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *CBSPreview* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*CBSPreview*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *WindowsFeedback* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*WindowsFeedback*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *PeopleExperienceHost * | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*PeopleExperienceHost *"} | remove-appxprovisionedpackage -online
Get-AppxPackage *SecureAssessmentBrowser* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*SecureAssessmentBrowser*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *PinningConfirmation* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*PinningConfirmation*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *SecHealthUI* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*SecHealthUI*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *SecondaryTileExperience* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*SecondaryTileExperience*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *ParentalControls* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*ParentalControls*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Holographic.FirstRun* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Holographic.FirstRun*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *QuickStart* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*QuickStart*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *AsyncTextService* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*AsyncTextService*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *CredDialogHost* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*CredDialogHost*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *ECApp* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*ECApp*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *FilePicker* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*FilePicker*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *1527c705-839a-4832-9118-54d4Bd6a0c89* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*1527c705-839a-4832-9118-54d4Bd6a0c89*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *SuggestedFolders* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*SuggestedFolders*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *LockApp* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*LockApp*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Wallet* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Wallet*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *VP9VideoExtensions* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*VP9VideoExtensions*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *StorePurchaseApp* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*StorePurchaseApp*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *MixedReality.Portal* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*MixedReality.Portal*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Services.Store* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Services.Store*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *MicrosoftStickyNotes* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*MicrosoftStickyNotes*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *MicrosoftOfficeHub* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*MicrosoftOfficeHub*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *Getstarted* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Getstarted*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *GetHelp* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*GetHelp*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *OneConnect* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*OneConnect*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *SolitaireCollection* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*SolitaireCollection*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *OneDrive* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*OneDrive*"} | remove-appxprovisionedpackage -online
Get-AppxPackage *MSPaint* | Remove-Appxpackage
Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*MSPaint*"} | remove-appxprovisionedpackage -online

如何恢复应用

  • 单独安装某个应用

    1. powershell进入C:\Program Files\WindowsApps目录
    2. 查询相关的安装包目录名
      ls | findstr "Xbox"
    3. 使用安装命令安装该应用
      Add-appxpackage -register "C:\Program Files\WindowsApps\安装包目录名\appxmanifest.xml" -disabledevelopmentmode
  • 一次性恢复所有应用
    Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

Tips:

  • 以管理员权限运行powershell
  • “删除已安装app”和“删除已置备app”两个动作互不相关
  • “已安装app”可以理解为已经安装完成的应用程序,删除后相当于从电脑里卸载了该应用软件
  • “已置备app”可以理解为系统为用户提供了该可用应用所需的资源配置,删除后相当于该应用不再可用,但不代表删除了原始安装包
  • 原始安装文件所在路径为:C:\Program Files\WindowsApps

posted on 2021-01-27 15:11  越野兔  阅读(6283)  评论(0编辑  收藏  举报

导航