有些人不喜欢默认安装在Windows 10中的通用应用程序,并希望摆脱它们。他们可以使用“设置”(Settings)应用手动卸载其中的大部分,也可以使用PowerShell卸载全部或仅卸载部分。日历(Calendar)、邮件(Mail)、相机(Camera)、照片或 Candy Crush Soda Saga(Photos or Candy Crush Soda Saga)等应用程序(Apps)可以立即从Windows 10计算机中删除。问题是:如何恢复所有默认的Windows 10,当您知道您需要它们时,或者当它们损坏且不再正常工作时?在本教程中,我们将向您展示如何重新安装和重新注册所有(default apps)Windows 10附带的默认应用程序。您不必担心,因为这是一个简单明了的过程。让我们开始吧:
在继续之前要了解的重要事项
我们在本教程中向您展示的步骤可帮助您从Windows 10重新安装所有(Windows 10)默认应用程序(default apps),包括Microsoft Store。但是,请注意,我们展示的所有内容都经过测试并确认只能在带有2018 年 4 月(April 2018)更新的最新版本的(Update)Windows 10中运行。
如果您有旧版本的Windows 10,您可以按照我们显示的步骤来获取内置应用程序,但您可能无法同时重新安装Microsoft Store。在旧版本的Windows 10中恢复(Windows 10)Microsoft Store并能够安装其他应用程序的唯一行之有效的方法是进行干净的Windows 10安装。
步骤 1(Step 1)。以管理员(Administrator)身份打开PowerShell
首先(First),您必须以管理权限打开PowerShell 。最快的方法是使用任务栏中的Cortana的搜索(search bar)栏。键入“PowerShell”,右键单击(或点击并按住(tap and hold))Windows PowerShell结果,然后单击或点击“以管理员身份运行”("Run as administrator)。
您可以在本教程中找到许多其他打开PowerShell的方法:在Windows中启动(Windows)PowerShell的 9 种方法(包括以管理员身份)。启动 PowerShell(PowerShell)后,您应该会看到一个类似于此的窗口:
步骤 2(Step 2)。运行内置Windows 10应用程序的重新安装和重新注册命令(reinstall and re-register command)
要重新安装您随时间卸载的所有Windows 10 内置应用程序(built-in apps),您所要做的就是运行特定命令。在PowerShell(PowerShell)窗口中键入或复制粘贴以下命令:
Get-AppxPackage -allusers | foreach {Add-AppxPackage -register "$($_.InstallLocation)appxmanifest.xml" -DisableDevelopmentMode}
在Powershell中输入上述命令后,按Enter 键(Enter)。
随即,Windows 10 开始重新安装并重新注册其所有默认内置应用程序。请注意,此步骤可能需要一段时间,具体取决于您的 Windows 10 PC 的速度。
步骤 3(Step 3)。重新启动您的Windows 10设备
命令完成运行后,PowerShell会显示当前文件夹路径(folder path)。不显示任何消息或其他确认信息。关闭PowerShell并重新启动您的Windows 10 PC 或设备(PC or device)。登录后,您应该会发现所有缺失的Windows 10 默认应用程序(default apps)都可用。
如果您恢复的某些应用程序仍然无法正常运行怎么办?
如果您的 Windows 10 内置应用程序已重新安装但仍无法正常工作,在失去希望之前您还应该尝试另一件事:运行Windows 应用商店应用程序(Windows Store Apps)疑难解答。
您可以在“设置”应用程序(Settings app)的“更新和安全”(Update & Security) -> “疑难解答( Troubleshoot)”部分中找到它。
单击或点击Windows 应用商店应用程序(Windows Store Apps),然后按照故障排除向导的步骤进行操作。
如果它发现任何可能影响通用应用程序在您的Windows PC上运行的方式,它会进行必要的修复。完成该过程后,它应该要求您重新启动 Windows 10计算机或设备(computer or device)。
重新启动(Reboot)并检查您的应用程序是否正常工作。如果他们仍然没有,我们很抱歉,但您可以做的最好的事情是重置或重新安装Windows 10。如果您需要这方面的帮助,您可能会喜欢本指南:如何将Windows 10重置为其出厂默认设置并保留您的文件。
结论
如您所见,恢复所有Windows 10 默认应用程序(default apps)很容易,而且不会花费太长时间。毕竟,这只是运行一个PowerShell命令。您知道将内置应用程序(built-in apps)重新带回Windows 10的其他方法吗?不要犹豫,在下面的评论部分告诉我们。
How to reinstall all the Windows 10 default apps with PowerShell
Some people do not like the universal apps that аre installed by default In Wіndows 10 and want to get rid of thеm. They can manually unіnstall most of them using the Settings app, or they can use PowerShell to uninstall all or only some. Apps like Calendar, Mail, Camera, Photos or Candy Crush Soda Saga, can be gone from a Windows 10 computer in no time. The question is: how do you get all the default Windows 10 back, when you learn that you need them, or when they are broken and no longer work correctly? In this tutorial, we show you how to re-install and re-register all the default apps that are shipped with Windows 10. You should not worry, as this is a straightforward and simple process. Let's get started:
Important things to know before going further
The steps we show you in this tutorial help you reinstall all the default apps from Windows 10, including the Microsoft Store. However, note that everything we show is tested and confirmed to work only in the latest version of Windows 10 with April 2018 Update.
If you have an older version of Windows 10, you can follow the steps we show for getting the built-in apps back, but you might not be able to also re-install the Microsoft Store. The only proven way to get the Microsoft Store back in older versions of Windows 10, and then be able to install other apps, is to do a clean Windows 10 installation.
Step 1. Open PowerShell as Administrator
First of all, you must open PowerShell with administrative rights. The fastest way to do that is to use Cortana's search bar from the taskbar. Type "PowerShell," right-click (or tap and hold) on the Windows PowerShell result and then click or tap on "Run as administrator."
You can find many other ways of opening PowerShell, in this tutorial: 9 ways to launch PowerShell in Windows (including as admin). Once PowerShell is launched, you should see a window similar to this one:
Step 2. Run the reinstall and re-register command for built-in Windows 10 apps
To reinstall all the Windows 10 built-in apps which you uninstalled over time, all you have to do is run a specific command. Type or copy-paste the following command inside your PowerShell window:
Get-AppxPackage -allusers | foreach {Add-AppxPackage -register "$($_.InstallLocation)appxmanifest.xml" -DisableDevelopmentMode}
After you have entered the above command in Powershell, press Enter.
Immediately, Windows 10 starts reinstalling and re-registering all its default built-in apps. Note that this step might take a while, depending on the speed of your Windows 10 PC.
Step 3. Reboot your Windows 10 device
Once the command has finished running, PowerShell displays the current folder path. There are no messages or additional confirmations displayed. Close PowerShell and reboot your Windows 10 PC or device. When you log in, you should find all your missing Windows 10 default apps available.
What if some of your restored apps still do not work well?
In case your Windows 10 built-in apps are reinstalled but still do not work correctly, there is one more thing you should try before losing hope: run the Windows Store Apps troubleshooter.
You can find it in the Settings app, the Update & Security -> Troubleshoot section.
Click or tap on Windows Store Apps and follow the steps of the troubleshooting wizard.
If it finds anything that could affect the way the universal apps run on your Windows PC, it makes the necessary repairs. When that process is done, it should ask you to reboot your Windows 10 computer or device.
Reboot and check to see whether your apps are working correctly. If they still do not, we are sorry, but the best thing you can do is to reset or reinstall Windows 10. If you need help with that, you might like this guide: How to reset Windows 10 to its factory defaults and keep your files.
Conclusion
As you can see, bringing back all the Windows 10 default apps can be easy, and it should not take too long. After all, it is all about running just one PowerShell command. Do you know other ways to get the built-in apps back into Windows 10? Do not hesitate to let us know in the comments section below.