Invoke-RASClientPolicy

NAME

Invoke-RASClientPolicy

SYNOPSIS

Invokes an action on a client policy.

SYNTAX

Invoke-RASClientPolicy [-Idarrow-up-right] <uint> -Duplicatearrow-up-right <SwitchParameter> [<CommonParametersarrow-up-right>] Invoke-RASClientPolicy [-InputObjectarrow-up-right] <ClientRulesarrow-up-right> -Duplicatearrow-up-right <SwitchParameter> [<CommonParametersarrow-up-right>] Invoke-RASClientPolicy [-Exportarrow-up-right] <SwitchParameter> [-Idarrow-up-right] <uint> [[-FilePatharrow-up-right] <string>] [<CommonParametersarrow-up-right>] Invoke-RASClientPolicy [-Exportarrow-up-right] <SwitchParameter> [-Namearrow-up-right] <string> [[-FilePatharrow-up-right] <string>] [<CommonParametersarrow-up-right>] Invoke-RASClientPolicy [-Importarrow-up-right] <SwitchParameter> [[-InputMethodarrow-up-right] {AddNew | Overwrite | AddWithNewName}] [<CommonParametersarrow-up-right>] Invoke-RASClientPolicy [-Importarrow-up-right] <SwitchParameter> [-FilePatharrow-up-right] <string> [[-InputMethodarrow-up-right] {AddNew | Overwrite | AddWithNewName}] [<CommonParametersarrow-up-right>]

DESCRIPTION

Invokes an action on a client policy.

PARAMETERS

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

        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.

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

-InputObject <ClientRulesarrow-up-right> The client policy object to invoke the action on.

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

-InputMethod <ClientPolicyInputMethodarrow-up-right> Overwrite the client policy if there is already another client policy with the same name. Possible values: AddNew, Overwrite, AddWithNewName

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

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

<CommonParameters>

INPUTS

ClientRulesarrow-up-right

OUTPUTS

ClientRulesarrow-up-rightRASFilesarrow-up-right

EXAMPLES

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

Last updated