# New-RASClientPolicy

## NAME

New-RASClientPolicy

## SYNOPSIS

Adds a new client policy.

## SYNTAX

**New-RASClientPolicy** \[-[Name](#Name)] _\<string>_ \[-[Account](#Account) _\<string>_] \[-[AllowClientAndroid](#AllowClientAndroid) _\<bool>_] \[-[AllowClientChrome](#AllowClientChrome) _\<bool>_] \[-[AllowClientHTML5](#AllowClientHTML5) _\<bool>_] \[-[AllowClientIOS](#AllowClientIOS) _\<bool>_] \[-[AllowClientLinux](#AllowClientLinux) _\<bool>_] \[-[AllowClientMAC](#AllowClientMAC) _\<bool>_] \[-[AllowClientWindows](#AllowClientWindows) _\<bool>_] \[-[AllowClientWyse](#AllowClientWyse) _\<bool>_] \[-[Description](#Description) _\<string>_] \[-[Enabled](#Enabled) _\<bool>_] \[-[GatewayRule](#GatewayRule) {Any | AnyGW | Connected | ConnectedToGWs | NotConnected | NotConnectedToGWs}] \[-[MACRule](#MACRule) {AnyMAC | AllowedMACs | NotAllowedMACs}] \[-[SID](#SID) _\<string>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

## DESCRIPTION

Adds a new client policy.

## PARAMETERS

-**Name \<string>**\
Name of the new client policy.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Enabled \<bool>**\
Whether the new client policy will be enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                True

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Description \<string>**\
Description for the new client policy.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**GatewayRule <**[**GatewayRuleType**](../classes-and-enumerations/gatewayruletype)**>**\
Gateway criteria. Use one of the following options:

0 = if Client is connected to any gateway

1 = if Client is connected to one of the following gateways

2 = if Client is not connected to one of the following gateways

Possible values: Any, AnyGW, Connected, ConnectedToGWs, NotConnected, NotConnectedToGWs

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MACRule <**[**MACRuleType**](../classes-and-enumerations/macruletype)**>**\
MAC address criteria. Use one of the following options:

0 = to any MAC address

1 = if the Client's MAC address is one of the following

2 = if the Client's MAC address is not one of the following

Possible values: AnyMAC, AllowedMACs, NotAllowedMACs

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowClientChrome \<bool>**\
Allow Chrome OS clients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowClientAndroid \<bool>**\
Allow Android clients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowClientHTML5 \<bool>**\
Allow Web clients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowClientIOS \<bool>**\
Allow IOS clients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowClientLinux \<bool>**\
Allow Linux clients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowClientMAC \<bool>**\
Allow Mac clients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowClientWindows \<bool>**\
Allow Windows clients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowClientWyse \<bool>**\
Allow Wyse clients.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Account \<string>**\
The name of the user/group account.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**SID \<string>**\
The SID of the user/group account.

```
        Required?                    false

        Position?                    named

        Default value                

        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

[ClientRules](../classes-and-enumerations/clientrules)

## EXAMPLES

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

New-RASClientPolicy -Name PDFPolicy

Adds a new client policy named as PDFPolicy.\
&#xNAN;**---------- EXAMPLE 2 ----------**

New-RASClientPolicy -Name UserGroupPolicy -Enable $False -Description 'For the User Groups'

Adds a new client policy named as UserGroupPolicy which is disabled and has a description of 'For the User Groups'.

## RELATED LINKS

* [Set-RASClientPolicy](set-rasclientpolicy)
* [Remove-RASClientPolicy](remove-rasclientpolicy)
* [Get-RASClientPolicy](get-rasclientpolicy)
* [Get-RASClientPolicyAssignment](get-rasclientpolicyassignment)
* [Add-RASCriteriaSecurityPrincipal](add-rascriteriasecurityprincipal)
