Add-RASRule
SYNOPSIS
Adds a Rule to the Rule List.
SYNTAX
Add-RASRule [-Id] <uint> [[-SiteId] <uint>] -ObjType {ClientPolicy | PubItem | FileAccess}
-RuleName <string> [-Description <string>] [-Enabled <bool>] [<CommonParameters>]Add-RASRule [-InputObject] <RASListObj> [[-SiteId] <uint>] -RuleName <string>
[-Description <string>] [-Enabled <bool>] [<CommonParameters>]Add-RASRule [-Name] <string> [[-SiteId] <uint>] -ObjType {ClientPolicy | PubItem | FileAccess}
-RuleName <string> [-Description <string>] [-Enabled <bool>] [<CommonParameters>]DESCRIPTION
Adds a Rule to the Rule List within Published Items.
EXAMPLES
Example 1
Add-RASRule -Id 1 -ObjType ClientPolicy -RuleName Rule1Add a rule with name Rule1 to the Rule List within the Client Policy with Id 1.
PARAMETERS
-Enabled
Whether the new rule will be enabled or disabled.
-RuleName
The name of the rule to add to the Criteria.
-Description
Description for the new rule.
-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