Set-AppBackgroundTaskResourcePolicy
Set-AppBackgroundTaskResourcePolicy is accessible with the help of AppBackgroundTask module. To configure AppBackgroundTask, go through this link.
Synopsis
Configures the use of global pool by background tasks.
Description
The Set-AppBackgroundTaskResourcePolicy cmdlet configures the use of global pool by background tasks. Global pool is a shared resource that provides CPU or network resources when an application needs additional resources to complete a task. You must have administrator access to set the background task resource policy.
Parameters
-Mode
Specifies the global pool settings for background tasks on the system. Acceptable values for this parameter are: Normal and Conservative. Use Normal to enable the global pool for all applications. Use Conservative to disable the global pool for all applications.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm <SwitchParameter>
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf <SwitchParameter>
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
Syntax
Set-AppBackgroundTaskResourcePolicy -Mode <String> [-WhatIf] [-Confirm] [<CommonParameters>]
————Example 1————
Set global resource policy to conservative mode
PS C:> Set-AppBackgroundTaskResourcePolicy -Mode Conservative
This command sets the global resource policy for background tasks to Conservative, which ensures that background tasks use the minimum CPU.
————Example 2————
Set global resource policy to normal mode
PS C:>Set-AppBackgroundTaskResourcePolicy -Mode Normal
This command sets the global resource policy for background tasks to Normal. A restart is required if the previous setting was Conservative.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Set-AppBackgroundTaskResourcePolicy