# Set-RASCriteria

## NAME

Set-RASCriteria

## SYNOPSIS

Modifies the Criteria settings.

## SYNTAX

**Set-RASCriteria** \[-[DefObjType](#defobjtype)]\*\*\
{[MFA](../types/mfa)} \[\[-[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_](../types/raslistobj)_)_\
\[-[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](../types/accesstype))

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](../types/matchingmodetype))\
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](../types/matchingmodetype))\
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](../types/matchingmodetype))\
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](../types/matchingmodetype))\
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](../types/matchingmodetype))\
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](../types/matchingmodetype))\
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](../types/matchingmodetype))\
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](../types/raslistobj))

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](../types/criteriaobjtype))

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](../types/criteriadefobjtype))\
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](get-rascriteria)
* [Add-RASCriteriaGatewayIP](add-rascriteriagatewayip)
* [Add-RASCriteriaDevice](add-rascriteriadevice)
* [Add-RASCriteriaHardwareID](add-rascriteriahardwareid)
* [Add-RASCriteriaIP](add-rascriteriaip)
* [Add-RASCriteriaSecurityPrincipal](add-rascriteriasecurityprincipal)
* [Add-RASCriteriaTheme](add-rascriteriatheme)
* [Set-RASCriteriaOS](set-rascriteriaos)
* [Remove-RASCriteriaGatewayIP](remove-rascriteriagatewayip)
* [Remove-RASCriteriaDevice](remove-rascriteriadevice)
* [Remove-RASCriteriaHardwareID](remove-rascriteriahardwareid)
* [Remove-RASCriteriaIP](remove-rascriteriaip)
* [Remove-RASCriteriaSecurityPrincipal](remove-rascriteriasecurityprincipal)
* [Remove-RASCriteriaTheme](remove-rascriteriatheme)
