Set-AppBackgroundTaskResourcePolicy

Set-AppBackgroundTaskResourcePolicy

Configures the use of global pool by background tasks.

Syntax

Parameter Set: Default
Set-AppBackgroundTaskResourcePolicy -Mode <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed 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<String>

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.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Set global resource policy to conservative mode

This command sets the global resource policy for background tasks to Conservative, which ensures that background tasks use the minimum CPU.

PS C:\> Set-AppBackgroundTaskResourcePolicy -Mode Conservative 

Example 2: Set global resource policy to normal mode

This command sets the global resource policy for background tasks to Normal. A restart is required if the previous setting was Conservative.

PS C:\> Set-AppBackgroundTaskResourcePolicy -Mode Normal