Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
To provide the best experience for consumers, Windows provides controls that give users the choice of which experiences may run in the background.
By default, resource limits are imposed on applications. Foreground apps are given the most memory and execution time; background apps get less. Users are thus protected from poor foreground app performance and heavy battery drain.
Enterprise users want the same ability to enable or limit background activity. Starting with Windows 10 version 1703, enterprises can now configure settings via policy and provisioning that control background activity.
Users have the ability to control background activity for their device through two interfaces in the Settings app: the Background apps page and the Battery usage by app page. The Background apps page has a master switch to turn background activity on or off for all apps, and provides individual switches to control each app's ability to run in the background.
The Battery usage by app page allows fine-grained tuning of background activity. Users have the ability to set background activity to by Managed By Windows, and turning it on or off for each app. Only devices with a battery have this page available in the Settings app. Here's the set of available controls on desktop:
Here's the set of available controls for mobile devices:
Although the user interface differs across editions of the operating system, the policy and developer interface is consistent across Windows clients. For more information about these controls, see Optimize background activity.
Starting with Windows 10, version 1703, enterprises can control background activity through mobile device management (MDM) or Group Policy. The user controls discussed above can be controlled with the following policies:
./Vendor/Microsoft/Policy/Config/Privacy/LetAppsRunInBackground
./Vendor/Microsoft/Policy/Config/Privacy/LetAppsRunInBackground_ForceAllowTheseApps
./Vendor/Microsoft/Policy/Config/Privacy/LetAppsRunInBackground_ForceDenyTheseApps
./Vendor/Microsoft/Policy/Config/Privacy/LetAppsRunInBackground_UserInControlOfTheseApps
These policies control the background activity battery settings for Universal Windows Platform (UWP) apps. They enable apps to not be managed by the Windows system policies and not be restricted when battery saver is active. Applying these policies to a device will disable the user controls for the applications specified in the policies in the Settings app. For more information about these policies, visit Policy CSP.
An app can determine which settings are in place for itself by using BackgroundExecutionManager.RequestAccessAsync before any background activity is attempted, and then examining the returned BackgroundAccessStatus enumeration. The values of this enumeration correspond to settings in the battery usage by App settings page:
The Universal Windows Platform ensures that consumers will have great battery life and that foreground apps will perform well. Enterprises have the ability to change settings to enable scenarios specific to their business needs. Administrators can use the Background apps policies to enable or disable whether a UWP app can run in the background.
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayTraining
Module
Manage Universal Windows Platform apps - Training
This module explores using Microsoft Store to manage Universal Windows Platform apps.