UWP 或通用 Windows 平台应用程序(UWP or Universal Windows Platform apps)可以在公司的Microsoft Store中找到,并且在许多方面,它们的操作方式与传统的Win32 应用程序(Win32 apps)不同,但本质上它们是相同的。与常规的Win32应用程序一样,如果这些应用程序在后台运行,它们可能会耗尽您的电池电量。问题是,许多这些应用程序需要在后台运行,以便用户利用完整的功能集。您会看到,要使动态磁贴和通知等功能正常工作,UWP应用程序必须始终在后台运行。
(Turn)在Windows 11/10中关闭后台应用程序(Background Apps)
鉴于动态磁贴和通知的信息通常是从云端传送的,与Win32应用程序相比, (Win32)UWP应用程序应该消耗更少的电池电量,但这还没有经过我们的测试,所以它仍然悬而未决。
阻止 Windows(Stop Windows)应用在后台运行
有四种方法可以做到这一点,但首先,我们将研究如何阻止特定应用程序运行——你知道的,那些不太重要的应用程序。
1]通过Windows设置
视窗 10
为此,请单击“开始”菜单(Start Menu),然后打开“设置”(Settings)应用程序。单击Privacy,然后向下滚动到显示Background Apps的选项。
从这里,您应该会看到有权在后台运行的应用程序列表。在让应用程序在后台运行(Let apps run in the background)部分下,只需使用切换关闭/打开开关即可执行相关任务。
视窗 11
在Windows 11中,没有允许您关闭所有后台应用程序的全局设置。您必须单独为每个应用程序执行此操作。
阻止或阻止 Windows 11 应用在后台运行:
- 打开 Windows 11 设置
- 转到应用程序 > 应用程序和功能
- 找到您要阻止在后台运行的应用程序
- 点击高级选项
- 打开后台(Background)应用权限下拉菜单
- 您可以在此处选择始终(Always)、推荐(Recommended)或从不。
请记住,如果定期使用警报(Alarm)和邮件应用程序等应用程序,它们应始终在后台运行。(Mail)关闭它们意味着您不会被闹钟(Alarm)吵醒,也不会在收到新电子邮件时收到通知或实时磁贴更新。
当您减少可以在后台运行的应用程序时,您肯定会节省电量并让您的 PC 运行得更好。
2]通过省电模式
阻止UWP应用程序在后台运行的另一种方法是简单地打开省电模式。这样做,所有应用程序将立即停止在后台运行。当您远离电源并希望充分利用电池的能量时,这非常适合。
为此,请单击通知区域中的电池图标,然后单击“省电(Battery Saver)模式”选项以完成任务。看到了吗?整个过程就像说你的ABC(ABCs)一样简单,所以以后应该不会再有电池问题的抱怨了。
同样,在Windows 11中,您必须配置省电(Battery)模式设置。
您将在Settings > System > Power下获得它们。
3]使用注册表编辑器
打开注册表编辑器(Registry Editor)并导航到以下键;
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplication
这里:
- 创建一个名为Default的新(Default)DWORD(32 位)值并将其值设置为1
- 此外,创建另一个名为Migrated的(Migrated)DWORD(32 位)值并将其值设置为4
重启你的电脑。
这将阻止您的所有 Windows 应用程序在后台运行。
4]使用组策略编辑器
打开组策略编辑器(Group Policy Editor)并导航到以下设置:
Computer Configuration > Administrative Templates > Windows Components > App Privacy。
找到让 Windows 应用在后台运行设置(Let Windows apps run in the background setting)并将其设置为已启用(Enabled)。
从所有应用程序的默认(Default for all apps)下拉菜单中,选择强制拒绝(Force Deny)。
单击应用并退出。
这将阻止您的所有 Windows 应用程序在后台运行。
Hope this helps!
How to stop Apps from running in the background in Windows 11/10
UWP or Universal Windows Platform apps can be found in the company’s Microsoft Store, and in many ways, they operate differently from the traditional Win32 apps, but by nature, they are the same. Like the regular Win32 apps, these apps can drain your battery if they are left to run in the background. The thing is, many of these apps need to run in the background in order for the user to take advantage of the full feature set. You see, for such things as live tiles and notifications to work, UWP apps must run in the background at all times.
Turn off Background Apps in Windows 11/10
Seeing as the information for live tiles and notifications are usually delivered from the cloud, UWP apps should drain less power from your battery when compared to Win32 apps, but this has yet to be tested by us, so it is still up in the air.
Stop Windows apps from running in the background
There are four ways to do this, but first, we are going to look at how to stop specific apps from running – you know, the ones that are not overly important.
1] Via Windows Settings
Windows 10
To accomplish this, click on the Start Menu then open the Settings apps. Click on Privacy, then scroll down to the option that says, Background Apps.
From here, you should see a list of apps that have permission to run in the background. Under Let apps run in the background section, simply use the toggle off/on switches to perform the relevant task.
Windows 11
In Windows 11, there is no global setting that allows you to turn off all background apps. You have to do it for every app individually.
To prevent or Windows 11 apps from running in the background:
- Open Windows 11 Settings
- Go to Apps > Apps & features
- Locate the app you want to prevent from running in the background
- Click on Advanced options
- Open the Background apps permission drop-down menu
- Here you can select Always, Recommended, or Never.
Keep in mind that apps such as the Alarm and Mail apps should always run in the background if they are used on a regular basis. Turning them off means you won’t get awakened by the Alarm bell, and you won’t get notifications or live tile updates when a new email has arrived.
When you reduce the apps that can run in the background, you will definitely conserve power as well as make your PC run better.
2] Via Battery Saver mode
Another way of stopping UWP apps from running in the background, is simply, turning On the Battery Saver mode. Do this, and all apps will cease from running in the background right away. This is great for when you’re away from a power supply and want to get the most out of your battery’s energy.
To do this, click on the battery icon situated in the notification area, then click on the Battery Saver option to complete the task. See that? The whole process is as easy as saying your ABCs, so there should be no more complaints about battery problems in the future.
In Windows 11 similarly, you have to configure the Battery saver settings.
You will get them under Settings > System > Power.
3] Using Registry Editor
Open Registry Editor and navigate to the following key;
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplication
Here:
- Create a new DWORD (32-bit) value with the name Default and set its value to 1
- Also, create another DWORD (32-bit) value with the name Migrated and set its value to 4
Restart your computer.
This will prevent all your Windows apps from running in the background.
4] Using Group Policy Editor
Open Group Policy Editor and navigate to the following setting:
Computer Configuration > Administrative Templates > Windows Components > App Privacy.
Locate the Let Windows apps run in the background setting and set it to Enabled.
From the drop-down menu for Default for all apps, select Force Deny.
Click Apply and exit.
This will prevent all your Windows apps from running in the background.
Hope this helps!