Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Set-AppBackgroundTaskResourcePolicy

Brian Lich|Last Updated: 3/8/2017

SYNOPSIS

Configures the use of the global pool by background tasks.

SYNTAX

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

DESCRIPTION

The Set-AppBackgroundTaskResourcePolicy cmdlet configures the use of the global pool by background tasks. The global pool is a shared resource that provides CPU or network resources when an application requires additional resources to complete a task. You must have administrator access to set the background task resource policy.

EXAMPLES

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.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Mode

Specifies the global pool settings for background tasks on the system. Valid values are Normal and Conservative. Use Normal to enable the global pool for all applications. Use Conservative to disable the global pool for all applications.

Type: String
Parameter Sets: (All)
Aliases: 
Accepted values: Normal, Conservative

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

© 2017 Microsoft