# Set-RASClientPolicyAssignment

## NAME

Set-RASClientPolicyAssignment

## SYNOPSIS

Modifies settings of the assignment within a client policy.

## SYNTAX

**Set-RASClientPolicyAssignment** \[[Id](#id-string)] *(uint)* \[-[Default](#Default) {Deny | Allow}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASClientPolicyAssignment** \[-[InputObject](#inputobject)] *(*[*ClientRules*](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/clientrules)*)* \[-[Default](#Default) {Deny | Allow}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASClientPolicyAssignment** \[[Name](#name-string)] *(string)* \[-[Default](#Default) {Deny | Allow}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Modifies settings of the assignment within a client policy.

## PARAMETERS

## Default

([DefaultAssignmentType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/defaultassignmenttype)) Whether the default assignment is allow or deny.

Possible values: Deny, Allow

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Name (string)

Name of the client policy to modify.

This must be the actual client policy name used in the RAS farm.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Id (uint)

The ID of the client policy to modify. To obtain the ID, use the Get-RASClientPolicy cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject ([ClientRules](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/clientrules))

The client policy object to modify.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        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

[ClientRules](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/clientrules)

## OUTPUTS

-none-

## EXAMPLES

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

Set-RASClientPolicyAssignment 1 -Default Deny

Modifies the default assignment of a client policy specified by ID to Deny.

## RELATED LINKS

* [Get-RASClientPolicy](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasclientpolicy)
* [Set-RASClientPolicy](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rasclientpolicy)
* [Get-RASClientPolicyAssignment](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasclientpolicyassignment)
* [Set-RASRule](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rasrule)
* [Set-RASCriteria](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rascriteria)
