Set-RASRule

NAME

Set-RASRule

SYNOPSIS

Modifies the Rule settings.

SYNTAX

Set-RASRule [-Idarrow-up-right] <uint> [[-SiteIdarrow-up-right] <uint>] -ObjTypearrow-up-right {ClientPolicy | PubItem} -RuleIdarrow-up-right <uint> [-Descriptionarrow-up-right <string>] [-Enabledarrow-up-right <bool>] [-Priorityarrow-up-right {Up | Down}] [-RuleNamearrow-up-right <string>] [<CommonParametersarrow-up-right>] Set-RASRule [-InputObjectarrow-up-right] <RASListObjarrow-up-right> [[-SiteIdarrow-up-right] <uint>] -RuleIdarrow-up-right <uint> [-Descriptionarrow-up-right <string>] [-Enabledarrow-up-right <bool>] [-Priorityarrow-up-right {Up | Down}] [-RuleNamearrow-up-right <string>] [<CommonParametersarrow-up-right>] Set-RASRule [-Namearrow-up-right] <string> [[-SiteIdarrow-up-right] <uint>] -ObjTypearrow-up-right {ClientPolicy | PubItem} -RuleIdarrow-up-right <uint> [-Descriptionarrow-up-right <string>] [-Enabledarrow-up-right <bool>] [-Priorityarrow-up-right {Up | Down}] [-RuleNamearrow-up-right <string>] [<CommonParametersarrow-up-right>]

DESCRIPTION

Modifies the Rule settings of Published Items.

PARAMETERS

-RuleId <uint> The ID of the Rule to modify.

        Required?                    true
        Position?                    named
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Enabled <bool> Whether the rule will be enabled or disabled.

-RuleName <string> The modified name of the rule.

-Description <string> The modified description of the rule.

-Priority <MoveDirectionarrow-up-right> The direction to move the Rule: Up or Down (changes the priority of the Rule accordingly) Possible values: Up, Down

-Name <string> The name or server for which to modify the Rule settings.

-SiteId <uint> Site ID for which to modify the Rule settings. If the parameter is omitted, the Licensing Server site ID will be used.

-Id <uint> The ID of a server for which to modify the Rule settings.

-InputObject <RASListObjarrow-up-right> An object of type ClientPolicy or PubItem for which to modify the Rule settings.

-ObjType <RuleObjTypearrow-up-right> The Object Type for which to modify the Rule settings. Possible values: ClientPolicy, PubItem

<CommonParameters>

INPUTS

-none-

OUTPUTS

-none-

EXAMPLES

---------- EXAMPLE 1 ---------- Set-RASRule -Id 1 -ObjType ClientPolicy -RuleId 2 -Description Test Modifies the description of the Rule with Id 2 from the Client Policy with Id 1.

Last updated