The ImportPFXaction is used to import a certificate to the local computer. For example, you can import a certificate if you have exported a certificate from another computer and want to use that same certificate on the local computer. The /ImportPFXaction requires the following syntax.

Copy Code
LCSCmd.exe /Cert /Action:ImportPFX /Filename:<file name>
/Password:<password>   [/assign:{TRUE|FALSE}]
[/Components:{AP | DP | MR | INTERNAL}]
[/exportable[:{TRUE|FALSE}]] [/L:<log file path>]
[/XML[:{TRUE|FALSE}]] [/?[:{TRUE|FALSE}]]

Such as:

Copy Code
LcsCmd.exe /Cert /Action:ImportPFX
/Filename:C:\ExportedCertificate.pfx /Password:CertPAssw0rd

Where:

Parameter Description

/Cert

Executes the selected certificate task on the current computer.

/Action

Takes a string that specifies the action name. Valid action names include Request, CheckStatus, ImportResponse, ImportPFX, ExportPFX, ListCA, and ImportCAChain.

/Filename

Specifies the PFX file containing the certificate and its private key.

/Password

Specifies the password for the PFX file.

/exportable

Specifies whether the private key should be marked as exportable. If not specified, FALSEis used.

/assign

New in Office Communications Server 2007 R2. Specifies whether the issued certificate should be assigned immediately. This parameter is available only when Onlineis set to True (the default).

/Components

New in Office Communications Server 2007 R2. Specifies the Edge Server to which the certificate should be assigned. This is a comma-separated list, specifying one or more of the following options:

APAccess Proxy or Access Edge Server

DPData Proxy or Web Conferencing Edge Server

MRMedia Relay or A/V Edge Server

INTERNALEdge Server internal interface (default)

/L

Specifies the log file path. If not specified, %TEMP%\<ActionName>[<Date>][<Time>].html is used. To disable logging, use a dash character (-) as the log file name.

/XML

Specifies whether the log file to be generated should be in XML format instead of HTML.

/?

Shows Help on usage.