Set-RASCriteriaDevicePosture
SYNOPSIS
Modifies the Device Posture Criteria.
SYNTAX
Set-RASCriteriaDevicePosture [-DefObjType] {MFA} [[-SiteId] <uint>]
[-Compliance {Compliant | NonCompliant}] [-MatchUnevaluated <bool>] [<CommonParameters>]Set-RASCriteriaDevicePosture [-Id] <uint>
-ObjType {ClientPolicy | PubItem | FileAccess | MFA | LogonHours}
[-Compliance {Compliant | NonCompliant}] [-MatchUnevaluated <bool>] [-RuleId <uint>]
[<CommonParameters>]Set-RASCriteriaDevicePosture [-InputObject] <RASListObj> [-Compliance {Compliant | NonCompliant}]
[-MatchUnevaluated <bool>] [-RuleId <uint>] [<CommonParameters>]Set-RASCriteriaDevicePosture [-Name] <string> [[-SiteId] <uint>]
-ObjType {ClientPolicy | PubItem | FileAccess | MFA | LogonHours}
[-Compliance {Compliant | NonCompliant}] [-MatchUnevaluated <bool>] [-RuleId <uint>]
[<CommonParameters>]DESCRIPTION
Modifies the Device Posture Criteria within the Criteria settings of a Logon Hours or MFA object.
EXAMPLES
Example 1
Sets the Compliance to Compliant within the Criteria Settings of the specified MFA by ID.
Example 2
Sets the Compliance to Compliant within the Criteria Settings of the specified Logon Hours by Name.
PARAMETERS
-Compliance
Whether to apply the rule when the device is Compliant or Non-Compliant
Possible values: Compliant, NonCompliant
Type reference: ComplianceType
-MatchUnevaluated
Whether to also match devices that cannot be evaluated
-Name
The name or server for which to modify the Criteria settings.
-SiteId
Site ID for which to modify the Criteria 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 Criteria settings.
-InputObject
An object of type ClientPolicy, PubItem or MFA for which to modify the Criteria settings.
Type reference: RASListObj
-ObjType
The Object Type for which to modify the Criteria settings.
Possible values: ClientPolicy, PubItem, FileAccess, MFA, LogonHours
Type reference: CriteriaObjType
-DefObjType
The Default Object Type for which to modify the Criteria settings.
Possible values: MFA
Type reference: CriteriaDefObjType
-RuleId
The ID of the Rule to modify.
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