Article ID: 116611, created on Aug 1, 2013, last review on May 7, 2014

  • Applies to:
  • Virtuozzo containers for Windows


There can be cases when Virtuozzo license goes to EXPIRED status. In this case containers will go in stopped state. It can be in several cases, for example server could not connect to licensing host.


You can create your own script that will send notification when license goes to inactive state:

  1. Create vbs script that will send mails:

    Dim objMail
    Set objMail = CreateObject("CDO.Message")
    objMail.From = "Me <>"
    objMail.To = "You <>"
    objMail.Subject = "License Expired"
    objMail.Textbody = "Hello, your license is in expired state, please check it as soon as possible with vzlicview command"
    ' Use an SMTP server
    objMail.Configuration.Fields.Item _
        ("") = 2
    ' Name or IP of Remote SMTP Server
    objMail.Configuration.Fields.Item _
        ("") = _
    ' Server port (typically 25)
    objMail.Configuration.Fields.Item _
        ("") = 25
    Set objMail=Nothing

    Save it as script.vbs in c:\myplace folder for example.

  2. Create Powershell script that will check license and use mail script in case of license expired:

    $status = vzlicview | findstr status
    if ($status.Contains("EXPIRED")) {
    cscript "c:\myplace\script.vbs"

Save it as C:\myplace\vzlic.ps1

  1. Add this task to Scheduler for running every 30 minutes. Use the following command in action tab:

    powershell C:\myplace\vzlic.ps1

Search Words

license notifications

d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223 965b49118115a610e93635d21c5694a8

Email subscription for changes to this article
Save as PDF