Community

Axigen patches update script - Windows

Our support team have generated a PowerShell script to ease installation of Axigen minor updates (Axigen binary, WebMail, and WebAdmin) on Windows.

axigen-update.ps1

SHA1: da17ac35c414de16d0b65b6918d799ca61289a5a

Usage: ./axigen-update.ps1 <SERVICE_NAME>

:information_source: The script requires PowerShell version 5 or newer
:information_source: Because the script is not signed an error could occur. In this case to allow the script to run on your system you should run below command:

Unblock-file axigen-update.ps1

This script will restart the Axigen service, we strongly recommend to run it during a maintenance window.

:warning: Note that this script is not suitable for High-availability cluster installations.

Feel free to express your feedback about this script here or by contacting support team.

Updated: 2020-08-30T21:00:00Z

Hi,
I am unable to to use script on Server Core. Manual upgrade is OK.

PS C:\Program Files\Axigen Mail Server> ./axigen-update.ps1 “Axigen Mail Server”
Microsoft Windows Server 2019 Datacenter detected
Axigen service is installed

Axigen install folder: C:\Program Files\Axigen Mail Server
Axigen Working Directory: C:\Program Files\Axigen Mail Server\

Axigen binary version: 10.3.3.2
Webmail interface version: 10.3.3.2.0
Webadmin interface version: 10.3.3.2.0

Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or
Internet Explorer’s first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
At C:\Program Files\Axigen Mail Server\axigen-update.ps1:87 char:21

  • $latest_version = (Invoke-WebRequest -Uri $version_url ).Content
    
  •                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotImplemented: (:slight_smile: [Invoke-WebRequest], NotSupportedException
    • FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestComman
      d

You cannot call a method on a null-valued expression.
At C:\Program Files\Axigen Mail Server\axigen-update.ps1:92 char:1

  • $major_new = $latest_version.split(’.’)[0] + “.” + $latest_version.sp …
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Program Files\Axigen Mail Server\axigen-update.ps1:93 char:1

  • $minor_new = $latest_version.split(’.’)[3]
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

The requested version of Axigen does not exit

Regards
Nenad

Hello,

Thank you for your report I will investigate this and I will came back when an update is available.

Thank you.