Set-AppBackgroundTaskResourcePolicy

Set-AppBackgroundTaskResourcePolicy

Configures the use of global pool by background tasks.

Syntax

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

Detaillierte Beschreibung

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.

Parameter

-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.

Aliasse

Keiner

Erforderlich?

true

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Confirm

Sie werden vor dem Ausführen des Cmdlets zur Bestätigung aufgefordert.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-WhatIf

Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

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