Article ID: 126975, created on Sep 23, 2015, last review on Sep 23, 2015

  • Applies to:
  • Plesk Automation 11.5


During Smarter Mail service node registration the task Install additional packages on node 'SMARTERMAIL' according role PPA_SMARTERMAIL fails with the error:

    Command 'cscript /Nologo "C:\Program Files (x86)\SWsoft\PEM/ppa_agent_stub_installer.vbs"' execution failed with code 1: Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.

The following records can be found on SmarterMail service node in the C:\Program Files (x86)\SWsoft\PEM\ppa_agent_stub_installer.log:

Running netsh "advfirewall firewall set rule name="WinRM in" new profile=any"...
Program 'netsh' failed with code 1.

When trying to execute failed command manually, it returns an error about non-existent firewall rule:

C:\> netsh advfirewall firewall set rule name="WinRM in" new profile=any

No rules match the specified criteria.


The firewall rule named WinRM in does not exist. It should be created according to prerequisites on Windows 2012 service nodes, which are described in the chapter about IIS service node deployment:

An internal documentation issue #PTD-708 about incomplete deployment description for Smarter Mail service node has been created. The Windows 2012 prerequisites will be added in future documentation updates.


Add missing firewall rule on the Smarter Mail service node:

  1. Run cmd.exe as administrator
  2. Run the following commands:

    sc config winrm start= auto
    sc start winrm
    %windir%\system32\timeout /t 5
    cmd /c winrm put winrm/config/service @{AllowUnencrypted = "true"}
    %windir%\system32\timeout /t 2
    cmd /c winrm put winrm/config/service/Auth @{Basic = "true"}
    %windir%\system32\timeout /t 2
    cmd /c winrm create winrm/config/Listener?Address=*+Transport=http @{Port="5985"}
    netsh advfirewall firewall add rule name="WinRM in" dir=in profile=any protocol=TCP localport=5985 remoteip= localip=any action=allow

    where is a communication IP address of the Management Node.

  3. Run failed task Install additional packages on node 'SMARTERMAIL' according role PPA_SMARTERMAIL.

Search Words

Program 'netsh' failed with code 1


service node registration

execution failed with code 1

Smarter Mail

unable to add smartermail



e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065 33a70544d00d562bbc5b17762c4ed2b3

Email subscription for changes to this article
Save as PDF