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>]

Such as:

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


Parameter Description


Executes the selected certificate task on the current computer.


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


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


Specifies the password for the PFX file.


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


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


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)


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.


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


Shows Help on usage.