SymptomsWhen I try to add any template (e.g., Parallels Plesk Panel) to a VE, I get the following error:
Command usage error 'cscript.exe "C:\Program Files\SWsoft\Virtuozzo\\bin\vzpkg.vbs" private install VE_ID template_name ERROR:Failed to add template template_name to VE VE_ID
If I run the vzpkg command without any key, I get the following error:
C:\vzpkg Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
ERROR: Cannot find VZSCRIPTS files:
C:\Program Files (x86)\SWsoft\Virtuozzo\Scripts\root-lst.awk
C:\Program Files (x86)\SWsoft\Virtuozzo\Scripts\security_cow.inf
CauseThe most probable reason for the error is that the WSH (Windows Script Host) is configured incorrectly on the Hardware Node (HN). As a result, the .vbs scripts cannot be executed. Since the vzpkg utility (which is used for template installations) is based on .vbs scripts, it doesn’t work properly and leads to failure.
ResolutionExecute the following command to reconfigure WSH:
Please note that during the initial failure, some template data could be uploaded inside the VE, and subsequent template installations can fail because of this. It may be more appropriate to create a brand new VE and install the template there.