Set-RASRule
SYNOPSIS
Modifies the Rule settings.
SYNTAX
Set-RASRule [-Id] <uint> [[-SiteId] <uint>] -ObjType {ClientPolicy | PubItem | FileAccess}
-RuleId <uint> [-Description <string>] [-Enabled <bool>] [-Priority {Up | Down}]
[-RuleName <string>] [<CommonParameters>]Set-RASRule [-InputObject] <RASListObj> [[-SiteId] <uint>] -RuleId <uint> [-Description <string>]
[-Enabled <bool>] [-Priority {Up | Down}] [-RuleName <string>] [<CommonParameters>]Set-RASRule [-Name] <string> [[-SiteId] <uint>] -ObjType {ClientPolicy | PubItem | FileAccess}
-RuleId <uint> [-Description <string>] [-Enabled <bool>] [-Priority {Up | Down}]
[-RuleName <string>] [<CommonParameters>]DESCRIPTION
Modifies the Rule settings of Published Items.
EXAMPLES
Example 1
Modifies the description of the Rule with Id 2 from the Client Policy with Id 1.
PARAMETERS
-RuleId
The ID of the Rule to modify.
-Enabled
Whether the rule will be enabled or disabled.
-RuleName
The modified name of the rule.
-Description
The modified description of the rule.
-Priority
The direction to move the Rule: Up or Down (changes the priority of the Rule accordingly)
Possible values: Up, Down
Type reference: MoveDirection
-Name
The name or server for which to modify the Rule settings.
-SiteId
Site ID for which to modify the Rule settings.
If the parameter is omitted, the Licensing Server site ID will be used.
-Id
The ID of a server for which to modify the Rule settings.
-InputObject
An object of type ClientPolicy or PubItem for which to modify the Rule settings.
Type reference: RASListObj
-ObjType
The Object Type for which to modify the Rule settings.
Possible values: ClientPolicy, PubItem, FileAccess
Type reference: RuleObjType
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
None
RELATED LINKS
Last updated