Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invoke-RASClientPolicy

SYNOPSIS

Invokes an action on a client policy.

SYNTAX

Invoke-RASClientPolicy [-Id] <uint> -Duplicate <SwitchParameter> [<CommonParameters>]
Invoke-RASClientPolicy [-InputObject] <ClientRules> -Duplicate <SwitchParameter>
 [<CommonParameters>]
Invoke-RASClientPolicy [-Export] <SwitchParameter> [-Id] <uint> [[-FilePath] <string>]
 [<CommonParameters>]
Invoke-RASClientPolicy [-Export] <SwitchParameter> [-Name] <string> [[-FilePath] <string>]
 [<CommonParameters>]
Invoke-RASClientPolicy [-Import] <SwitchParameter>
 [[-InputMethod] {AddNew | Overwrite | AddWithNewName}] [<CommonParameters>]
Invoke-RASClientPolicy [-Import] <SwitchParameter> [-FilePath] <string>
 [[-InputMethod] {AddNew | Overwrite | AddWithNewName}] [<CommonParameters>]

DESCRIPTION

Invokes an action on a client policy.

EXAMPLES

Example 1

Adds a new client policy by duplicating the client policy with ID 1.

Example 2

Imports a client policy from the specified file.

Example 3

Exports the client policy named PDFPolicy to the specified file.

PARAMETERS

-Id

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

-FilePath

File name and path.

Use the '.xml' filename extension to be consistent with the Parallels RAS console.

-Duplicate

Specifies the action to duplicate the Client Policy.

-InputObject

The client policy object to invoke the action on.

Type reference: ClientRules

-Import

Specifies the action to import the Client Policy(ies).

-InputMethod

Overwrite the client policy if there is already another client policy with the same name.

Possible values: AddNew, Overwrite, AddWithNewName

Type reference: ClientPolicyInputMethod

-Export

Specifies the action to import the Client Policy(ies).

-Name

Name of the client policy to be exported.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

ClientRules

OUTPUTS

ClientRules RASFiles

Last updated