# Set-RASCriteria.md

## NAME

Set-RASCriteria

## SYNOPSIS

Modifies the Criteria settings.

## SYNTAX

**Set-RASCriteria** \[-[DefObjType](#defobjtype)] {[MFA](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/mfa.md)} \[\[-[SiteId](#siteid-string)] *(uint)*] \[-[Access](#Access) {DenyCriteriaWhen | AllowCriteriaWhen}] \[[DevicesEnabled](#devicesenabled-string) *(bool)*] \[-[DevicesMatchingMode](#DevicesMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[GatewaysEnabled](#gatewaysenabled-string) *(bool)*] \[-[GatewaysMatchingMode](#GatewaysMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[HardwareIDsEnabled](#hardwareidsenabled-string) *(bool)*] \[-[HardwareIDsMatchingMode](#HardwareIDsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[IPsEnabled](#ipsenabled-string) *(bool)*] \[-[IPsMatchingMode](#IPsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[OSsEnabled](#ossenabled-string) *(bool)*] \[-[OSsMatchingMode](#OSsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[SecurityPrincipalsEnabled](#securityprincipalsenabled-string) *(bool)*] \[-[SecurityPrincipalsMatchingMode](#SecurityPrincipalsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[ThemesEnabled](#themesenabled-string) *(bool)*] \[-[ThemesMatchingMode](#ThemesMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASCriteria** \[[Id](#id-string)] *(uint)* -[ObjType](#objtype) {ClientPolicy | PubItem | MFA | LogonHours} \[-[Access](#Access) {DenyCriteriaWhen | AllowCriteriaWhen}] \[[DevicesEnabled](#devicesenabled-string) *(bool)*] \[-[DevicesMatchingMode](#DevicesMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[GatewaysEnabled](#gatewaysenabled-string) *(bool)*] \[-[GatewaysMatchingMode](#GatewaysMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[HardwareIDsEnabled](#hardwareidsenabled-string) *(bool)*] \[-[HardwareIDsMatchingMode](#HardwareIDsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[IPsEnabled](#ipsenabled-string) *(bool)*] \[-[IPsMatchingMode](#IPsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[OSsEnabled](#ossenabled-string) *(bool)*] \[-[OSsMatchingMode](#OSsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[RuleId](#ruleid-string) *(uint)*] \[[SecurityPrincipalsEnabled](#securityprincipalsenabled-string) *(bool)*] \[-[SecurityPrincipalsMatchingMode](#SecurityPrincipalsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[ThemesEnabled](#themesenabled-string) *(bool)*] \[-[ThemesMatchingMode](#ThemesMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASCriteria** \[-[InputObject](#inputobject)] *(*[*RASListObj*](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/raslistobj.md)*)* \[-[Access](#Access) {DenyCriteriaWhen | AllowCriteriaWhen}] \[[DevicesEnabled](#devicesenabled-string) *(bool)*] \[-[DevicesMatchingMode](#DevicesMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[GatewaysEnabled](#gatewaysenabled-string) *(bool)*] \[-[GatewaysMatchingMode](#GatewaysMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[HardwareIDsEnabled](#hardwareidsenabled-string) *(bool)*] \[-[HardwareIDsMatchingMode](#HardwareIDsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[IPsEnabled](#ipsenabled-string) *(bool)*] \[-[IPsMatchingMode](#IPsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[OSsEnabled](#ossenabled-string) *(bool)*] \[-[OSsMatchingMode](#OSsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[RuleId](#ruleid-string) *(uint)*] \[[SecurityPrincipalsEnabled](#securityprincipalsenabled-string) *(bool)*] \[-[SecurityPrincipalsMatchingMode](#SecurityPrincipalsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[ThemesEnabled](#themesenabled-string) *(bool)*] \[-[ThemesMatchingMode](#ThemesMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASCriteria** \[[Name](#name-string)] *(string)* \[\[-[SiteId](#siteid-string)] *(uint)*] -[ObjType](#objtype) {ClientPolicy | PubItem | MFA | LogonHours} \[-[Access](#Access) {DenyCriteriaWhen | AllowCriteriaWhen}] \[[DevicesEnabled](#devicesenabled-string) *(bool)*] \[-[DevicesMatchingMode](#DevicesMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[GatewaysEnabled](#gatewaysenabled-string) *(bool)*] \[-[GatewaysMatchingMode](#GatewaysMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[HardwareIDsEnabled](#hardwareidsenabled-string) *(bool)*] \[-[HardwareIDsMatchingMode](#HardwareIDsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[IPsEnabled](#ipsenabled-string) *(bool)*] \[-[IPsMatchingMode](#IPsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[OSsEnabled](#ossenabled-string) *(bool)*] \[-[OSsMatchingMode](#OSsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[RuleId](#ruleid-string) *(uint)*] \[[SecurityPrincipalsEnabled](#securityprincipalsenabled-string) *(bool)*] \[-[SecurityPrincipalsMatchingMode](#SecurityPrincipalsMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[[ThemesEnabled](#themesenabled-string) *(bool)*] \[-[ThemesMatchingMode](#ThemesMatchingMode) {IsNotOneOfTheFollowing | IsOneOfTheFollowing}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Modifies the Criteria settings of a ClientPolicy, MFA or PubItem.

## PARAMETERS

## Access ([AccessType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/accesstype.md))

The Access type

Possible values: DenyCriteriaWhen, AllowCriteriaWhen

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SecurityPrincipalsEnabled (bool)

Whether the Security Principals criteria is enabled or not

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SecurityPrincipalsMatchingMode

([MatchingModeType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/matchingmodetype.md)) The Security Principals criteria matching mode type

Possible values: IsNotOneOfTheFollowing, IsOneOfTheFollowing

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## GatewaysEnabled (bool)

Whether the Gateways criteria is enabled or not

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## GatewaysMatchingMode

([MatchingModeType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/matchingmodetype.md)) The Gateways criteria matching mode type

Possible values: IsNotOneOfTheFollowing, IsOneOfTheFollowing

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ThemesEnabled (bool)

Whether the Themes criteria is enabled or not

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ThemesMatchingMode

([MatchingModeType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/matchingmodetype.md)) The Themes criteria matching mode type

Possible values: IsNotOneOfTheFollowing, IsOneOfTheFollowing

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DevicesEnabled (bool)

Whether the Devices criteria is enabled or not

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DevicesMatchingMode

([MatchingModeType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/matchingmodetype.md)) The Devices criteria matching mode type

Possible values: IsNotOneOfTheFollowing, IsOneOfTheFollowing

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OSsEnabled (bool)

Whether the OSs criteria is enabled or not

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OSsMatchingMode

([MatchingModeType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/matchingmodetype.md)) The OSs criteria matching mode type

Possible values: IsNotOneOfTheFollowing, IsOneOfTheFollowing

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IPsEnabled (bool)

Whether the IPs criteria is enabled or not

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IPsMatchingMode

([MatchingModeType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/matchingmodetype.md)) The IPs criteria matching mode type

Possible values: IsNotOneOfTheFollowing, IsOneOfTheFollowing

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HardwareIDsEnabled (bool)

Whether the HardwareIDs criteria is enabled or not

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HardwareIDsMatchingMode

([MatchingModeType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/matchingmodetype.md)) The HardwareIDs criteria matching mode type

Possible values: IsNotOneOfTheFollowing, IsOneOfTheFollowing

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Name (string)

The name or server for which to modify the Criteria settings.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID for which to modify the Criteria settings.

If the parameter is omitted, the Licensing Server site ID will be used.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Id (uint)

The ID of a server for which to modify the Criteria settings.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject ([RASListObj](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/raslistobj.md))

An object of type ClientPolicy, PubItem or MFA for which to modify the Criteria settings.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ObjType ([CriteriaObjType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/criteriaobjtype.md))

The Object Type for which to modify the Criteria settings.

Possible values: ClientPolicy, PubItem, MFA, LogonHours

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefObjType

([CriteriaDefObjType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/criteriadefobjtype.md)) The Default Object Type for which to modify the Criteria settings.

Possible values: MFA

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RuleId (uint)

The ID of the Rule to modify.

```
        Required?                    false

        Position?                    named

        Default value                0

        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 documentation. 
```

## INPUTS

-none-

## OUTPUTS

-none-

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Set-RASCriteria -Id 1 -ObjType MFA -SecurityPrincipalsEnabled $false

Disables the SecurityPrincipal criteria within the Criteria settings of the MFA with Id 1.

## RELATED LINKS

* [Get-RASCriteria](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/get-rascriteria.md)
* [Add-RASCriteriaGatewayIP](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/add-rascriteriagatewayip.md)
* [Add-RASCriteriaDevice](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/add-rascriteriadevice.md)
* [Add-RASCriteriaHardwareID](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/add-rascriteriahardwareid.md)
* [Add-RASCriteriaIP](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/add-rascriteriaip.md)
* [Add-RASCriteriaSecurityPrincipal](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/add-rascriteriasecurityprincipal.md)
* [Add-RASCriteriaTheme](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/add-rascriteriatheme.md)
* [Set-RASCriteriaOS](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/set-rascriteriaos.md)
* [Remove-RASCriteriaGatewayIP](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-rascriteriagatewayip.md)
* [Remove-RASCriteriaDevice](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-rascriteriadevice.md)
* [Remove-RASCriteriaHardwareID](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-rascriteriahardwareid.md)
* [Remove-RASCriteriaIP](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-rascriteriaip.md)
* [Remove-RASCriteriaSecurityPrincipal](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-rascriteriasecurityprincipal.md)
* [Remove-RASCriteriaTheme](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-rascriteriatheme.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/set-rascriteria.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
