使用PowerShell从Windows 8删除多个现代应用程序

modern_uninstall_top

There are numerous modern apps that are a built into Windows 8 and they are featured prominently on the Start screen. It may well be the case that you don’t want to use them because they just aren’t apps you’re interested in, or it may be that you have found a better alternative.

Windows 8内置了许多现代应用程序,并且在“开始”屏幕上突出显示了这些功能。 可能是您不想使用它们,因为它们并不是您不感兴趣的应用,或者您找到了更好的选择。

You can right click a tile and selecting the uninstall option, but if you want to remove multiple apps at once you can do so with a PowerShell Script. You can also use this technique to uninstall multiple apps you have installed from the Store.

您可以右键单击磁贴并选择卸载选项,但是如果要一次删除多个应用程序,则可以使用PowerShell脚本执行。 您还可以使用此技术来卸载已从商店安装的多个应用程序。

modern_uninstall_1

You can download a readymade script from the TechNet Script Center that can be used to select all of the modern apps you want to remove, and uninstall them all at once. Download the script and extract it from the zip file.

您可以从TechNet脚本中心下载现成的脚本,该脚本可用于选择要删除的所有现代应用程序,并立即将其全部卸载。 下载脚本并将其从zip文件中解压缩。

modern_uninstall_2

Launch PowerShell in Administrator mode by pressing the Windows key to bring up the Start screen and then type Powershell. Right click the Windows PowerShell icon and then click the ‘Run as administrator’ button at the bottom of the screen before clicking Yes in the User Account Control dialog.

通过按Windows键以启动“开始”屏幕,然后键入Powershell,以管理员模式启动PowerShell。 右键单击Windows PowerShell图标,然后单击屏幕底部的“以管理员身份运行”按钮,然后在“用户帐户控制”对话框中单击“是”。

modern_uninstall_3

Run the script by typing its full path at the command prompt and then press Enter.

通过在命令提示符下键入其完整路径来运行脚本,然后按Enter。

modern_uninstall_4

You will see a list of all of the modern apps you have installed. This list includes apps that you have installed and those that are built into Windows 8.

您将看到已安装的所有现代应用程序的列表。 该列表包括您已安装的应用程序以及Windows 8中内置的应用程序。

Each app has a number next to it and you can use these to specify which apps should be uninstalled. Just enter all of the app numbers, separated by commas, and press Enter.

每个应用程序旁边都有一个数字,您可以使用这些数字指定应卸载的应用程序。 只需输入所有应用程序编号(用逗号分隔),然后按Enter。

modern_uninstall_5

Confirm the action and after a moment or two the selected apps will be removed for you.

确认操作,一两分钟后,所选的应用将为您删除。

Should you change your mind about an app you have removed, you can easily reinstate it from the Store.

如果您对已删除的应用程序改变主意,则可以轻松从Store恢复该应用程序

It may be that you would like to remove all modern apps form your hard drive, and if this is the case you have a couple of options available to you.

可能是您希望从硬盘驱动器中删除所有现代应用程序,如果是这种情况,则可以使用几个选项。

The first option can be used to remove all apps from the account you are currently logged into.  Launch PowerShell as an administrator and type the following command before pressing Enter:

第一个选项可用于从您当前登录的帐户中删除所有应用程序。 以管理员身份启动PowerShell,并在按Enter之前键入以下命令:

Get-AppxPackage | Remove-AppxPackage

Get-AppxPackage | Remove-AppxPackage

Secondly, you can use the following command to remove all modern apps from all user accounts:

其次,您可以使用以下命令从所有用户帐户中删除所有现代应用程序:

Get-AppxPackage -AllUsers | Remove-AppxPackage

Get-AppxPackage -AllUsers | Remove-AppxPackage

翻译自: https://www.howtogeek.com/138752/use-powershell-to-remove-multiple-modern-apps-from-windows-8/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值