# Invoke-RASClientPolicy

### NAME

Invoke-RASClientPolicy\ <br>

### SYNOPSIS

Invokes an action on a client policy.\ <br>

### SYNTAX

Invoke-RASClientPolicy \[-[Id](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Id)] *\<uint>* -[Duplicate](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Duplicate) *\<SwitchParameter>* \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#CommonParameters)*>*]\
\
Invoke-RASClientPolicy \[-[InputObject](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#InputObject)] *<*[*ClientRules*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ClientRules.html)*>* -[Duplicate](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Duplicate) *\<SwitchParameter>* \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#CommonParameters)*>*]\
\
Invoke-RASClientPolicy \[-[Export](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Export)] *\<SwitchParameter>* \[-[Id](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Id)] *\<uint>* \[\[-[FilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#FilePath)] *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#CommonParameters)*>*]\
\
Invoke-RASClientPolicy \[-[Export](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Export)] *\<SwitchParameter>* \[-[Name](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Name)] *\<string>* \[\[-[FilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#FilePath)] *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#CommonParameters)*>*]\
\
Invoke-RASClientPolicy \[-[Import](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Import)] *\<SwitchParameter>* \[\[-[InputMethod](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#InputMethod)] {AddNew | Overwrite | AddWithNewName}] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#CommonParameters)*>*]\
\
Invoke-RASClientPolicy \[-[Import](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#Import)] *\<SwitchParameter>* \[-[FilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#FilePath)] *\<string>* \[\[-[InputMethod](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#InputMethod)] {AddNew | Overwrite | AddWithNewName}] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Invoke-RASClientPolicy.html#CommonParameters)*>*]\ <br>

### DESCRIPTION

Invokes an action on a client policy.\ <br>

### PARAMETERS

\
-**Id \<uint>**\
The ID of the client policy to invoke the action on. To obtain the ID, use the Get-RASClientPolicy cmdlet.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**FilePath \<string>**\
File name and path.\
\
Use the '.xml' filename extension to be consistent with the Parallels RAS console.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Duplicate \<SwitchParameter>**\
Specifies the action to duplicate the Client Policy.\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                False
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InputObject <**[**ClientRules**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ClientRules.html)**>**\
The client policy object to invoke the action on.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                
```

```
        Accept pipeline input?       true (ByValue)
```

```
        Accept wildcard characters?  false
```

\
-**Import \<SwitchParameter>**\
Specifies the action to import the Client Policy(ies).\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                False
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InputMethod <**[**ClientPolicyInputMethod**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ClientPolicyInputMethod.html)**>**\
Overwrite the client policy if there is already another client policy with the same name.\
\
Possible values: AddNew, Overwrite, AddWithNewName\ <br>

```
        Required?                    false
```

```
        Position?                    0
```

```
        Default value                AddNew
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Export \<SwitchParameter>**\
Specifies the action to import the Client Policy(ies).\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                False
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Name \<string>**\
Name of the client policy to be exported.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

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

<br>

### INPUTS

[ClientRules](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ClientRules.html)

### OUTPUTS

[ClientRules](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ClientRules.html)[RASFiles](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RASFiles.html)

### EXAMPLES

\
\&#xNAN;**---------- EXAMPLE 1 ----------**\
\
Invoke-RASClientPolicy -Id 1 -Duplicate\
\
Adds a new client policy by duplicating the client policy with ID 1.\
\&#xNAN;**---------- EXAMPLE 2 ----------**\
\
Invoke-RASClientPolicy -Import "C:\Backup\PDF-clientpolicy.xml"\
\
Imports a client policy from the specified file.\
\&#xNAN;**---------- EXAMPLE 3 ----------**\
\
Invoke-RASClientPolicy -Export -Name PDFPolicy -FilePath "C:\Backup\PDF-clientpolicy.xml"\
\
Exports the client policy named PDFPolicy to the specified file.<br>
