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

Get-Command Set-AppBackgroundTaskResourcePolicy powershell script command cmdlet

To know more PowerShell cmdlets(Commands) on AppBackgroundTask click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *