Unattended Installation

It is possible to run the installation of the AnyCAGateway DCOM from a remote server using PowerShell exclusively.

To do this, on the target server where you wish to install the gateway:

  1. Place the installation file (AnyGatewayClosed The Keyfactor AnyGateway is a generic third party CA gateway framework that allows existing CA gateways and custom CA connections to share the same overall product framework.-24.4.1.msi) on the target server.
  2. Enable PowerShell remoting on the target server using the PowerShell command:

    Enable-PSRemoting
  3. Specify how you will provide credentials to the target server with the PowerShell command:

    Enable-WSManCredSSP -Role "Server"

On the remote server:

  1. Specify how you will provide credentials to the remote server with the PowerShell command:

    Enable-WSManCredSSP -Role "Client" -DelegateComputer <FQDN of target server>.
  2. Open the PowerShell session on the target with the command:

    Enter-PSSession -ComputerName <FQDN of target server> -Credential Get-Credential - Authentication Credssp

    Enter Administrator account credentials (or an account with all the necessary privileges on the target machine). The command-line prompt should show the name of the target server.

  3. Locate the installation file (AnyGateway-24.4.1.msi) on the target machine and execute it with the command:

    msiexec --% -1 "AnyGateway-24.4.1.msi" -qn INSTALLFOLDER="C:\Program Files\Keyfactor\Keyfactor AnyGateway\".
    Note:   A PowerShell variable can be used to modify the gateway configuration directly from the PowerShell the command line. For example:
    $config = Get-KeyfactorGatewayConfig -CAHostname $FQDN -LogicalName $LogicalName
    Set-KeyfactorGatewayConfig -CAHostname $FQDN -LogicalName $LogicalName -Config $config
  4. Follow the instructions for either an upgrade or a new install: Gateway Configuration Steps or Upgrading from AnyCAGateway DCOM Version 20.x or Later.