< Back

Set-ISHServiceBackgroundTask

Wed Jan 15, 2020 8:41 am

NAME Set-ISHServiceBackgroundTask



SYNOPSIS

Sets BackgroundTask windows service.





SYNTAX

Set-ISHServiceBackgroundTask -Count <int> [-Role <string>] [-ISHDeployment <ISHDeployment>] [<CommonParameters>]





DESCRIPTION

The Set-ISHServiceBackgroundTask cmdlet sets BackgroundTask windows service.





PARAMETERS

-Count <int>

The number of BackgroundTask services in the system.



Required? true

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Role <string>

The role of BackgroundTask services.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ISHDeployment <ISHDeployment>

Specifies the name or instance of the Content Manager deployment.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



---------- EXAMPLE 1 ----------



PS C:\\>Set-ISHServiceBackgroundTask -ISHDeployment $deployment -Count 2



This command changes the amount of instances of services. Parameter $deployment is a deployment name or an

instance of the Content Manager deployment retrieved from Get-ISHDeployment cmdlet.

---------- EXAMPLE 2 ----------



PS C:\\>Set-ISHServiceBackgroundTask -ISHDeployment $deployment -Count 2 -Role "PublishOnly"



This command changes the amount of instances of services with role "PublishOnly". Parameter $deployment is a

deployment name or an instance of the Content Manager deployment retrieved from Get-ISHDeployment cmdlet.



RELATED LINKS

Enable-ISHServiceBackgroundTask

Disable-ISHServiceBackgroundTask

Get-ISHServiceBackgroundTask

Remove-ISHServiceBackgroundTask