Set-AppBackgroundTaskResourcePolicy
Set-AppBackgroundTaskResourcePolicy
Configures the use of global pool by background tasks.
構文
Parameter Set: Default
Set-AppBackgroundTaskResourcePolicy -Mode <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
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.
パラメーター
-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.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
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