需要帮助才能通过 powershell 删除默认的 Windows 10 应用程序 [英] Need help to remove default Windows 10 apps via powershell

查看:30
本文介绍了需要帮助才能通过 powershell 删除默认的 Windows 10 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过在 powershell 脚本中运行以下命令来对 Windows 10 Education 进行 debloat.我可以获取脚本以删除已登录用户的应用程序,但只要有新用户登录,这些应用程序就会重新出现.

I'm trying to debloat Windows 10 Education by running the following commands in a powershell script. I can get the script to remove the apps for the logged in user but as soon as someone new logs in, the apps reappear.

这是我的脚本:

Get-AppxPackage -AllUsers | where-object {$_.name –like "*3DBuilder*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*windowsalarms*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*windowscamera*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*windowscommunicationsapps*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*officehub*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*getstarted*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*windowsmap*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*solitairecollection*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*bingfinance*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*bingnews*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*zunevideo*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*people*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*windowsphone*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*bingsports*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*windowsstore*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*soundrecorder*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*bingweather*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*xboxapp*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*Appconnector*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*MinecraftUWP*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*Messaging*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*WindowsFeedbackHub*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*Getstarted*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*GetHelp*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*ContactSupport*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*Wallet*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name –like "*OneConnect*"} | Remove-AppxPackage

任何建议将不胜感激.

推荐答案

我不是 100% 确定,但我认为您需要使用 -Online 参数

I'm not 100% sure but I think you need to use the -Online parameter

$Apps = Get-AppxProvisionedPackage -Online
$Apps | Where-Object {$_.DisplayName -like "*windowscommun*"} | Remove-AppxProvisionedPackage -Online

这篇关于需要帮助才能通过 powershell 删除默认的 Windows 10 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆