# Upgrading/Installing ASM to HERMES Step by Step Guide

<details>

<summary>Getting the install files for ASM Web Servers with Direct Connection to the Internet- PowerShell Script</summary>

Run PowerShell V5 or later as an Administrator and execute the following script:

{% code overflow="wrap" %}

```powershell
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process -Force; Invoke-WebRequest "https://alembareleases.blob.core.windows.net/asm- core/hermes_latest" -OutFile "$env:TEMP\Download_ASMCore.ps1"; Invoke-Expression "$env:TEMP\Download_ASMCore.ps1";
```

{% endcode %}

**The script will download the necessary files and prompt for various information as required.**

**Go to: Entering Parameters**

</details>

<details>

<summary>Getting the install files–Non-Interactive Installation For ASM Web Servers without direct connection to the Internet</summary>

Use this approach if the server which hosts your ASM application, commonly referred to as the ASM Web Server, does not have direct connectivity to the internet.

**Best Practice: Use the AlembaSetup.exe&#x20;***<mark style="color:green;">**Contact Alemba Support for this file**</mark>*

If you choose to progress the installation manually, you will need to perform the following:

1. In this case, all parameters must be set either as machine level environment variables or must be added to the registered key vault before install.ps1 is executed.

{% code overflow="wrap" %}

```powershell
[Environment]::SetEnvironmentVariable("ASM_ConnectionString", "Server=localhost;Database=asm;User ID=sa;Password=password", 'Machine')
```

{% endcode %}

2. Download package.zip and install.ps1 and copy these files to the same location on your server. (For example, an 'install' folder on the root or in a new folder you create for these files in the location you choose.)

You can download the files manually from here:

* <https://alembareleases.blob.core.windows.net/asm-> core/\[BuildNumber]/package.zip
* <https://alembareleases.blob.core.windows.net/asm-> core/\[BuildNumber]/Windows-Install.ps1

The \[BuildNumber] can be found in the Release Notes e.g. “HERMES *10.6.6.11415*”

3. Run PowerShell as an administrator and execute Windows-Install.ps1
   * Navigate to the folder where installation files are (making sure they haven’t been locked in any copy process)
   * **Best Practice:** Use AlembaSetup.exe

</details>

<details>

<summary>Entering Parameters</summary>

After downloading the files, the process will start and the script will ask for parameters as an interactive installation:

([Click here for all parameters and properties](https://docs.alemba.com/asm-eos-10.5/setup-and-configure-asm/installation-and-upgrade/installation-powershell-parameters))

![](https://content.gitbook.com/content/6Ckybwmt0tmi7y8MgYX4/blobs/UlAKpFKZRZ3QuE0kPV7a/image.png)

{% code overflow="wrap" %}

```powershell
Enter a value for Connection String:
Enter a value for Hostname (press enter to use 'localhost'): 
Enter a value for System Name (press enter to use 'production'): 
Enter a value for Certificate Thumbprint:
Enter a value for Certificate Store Location (press enter to use 'My'):
Enter a value for Install prerequisites [y or n] (press enter to use 'y')
Enter a value for Replace existing versions [y to replace (recommended) or n to modify] (press enter to use 'y'):
Enter a value for optional modules ['all', 'none', or any of 'alemba.web.windows', 'infra.api.wstester', 'infra.console', 'dashboard.platform'] (press enter to use 'none'):
Enter a value for License Key text for ASM:
```

{% endcode %}

</details>
