Zero Block
Click "Block Editor" to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.
Tilda Publishing
create your own block from scratch
Zero Block
Click "Block Editor" to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.
Tilda Publishing
create your own block from scratch
wmic api call failed: Command execution failed (exit code 0)
Проблема:
WMI на машині неробочий
Сервіси WMI (Інструментарій
Windows ) явно неробочі
[2017-12-18 15:28:25,987] INFO [localhost-startStop-1] (resto.licensing.hardware.HardwareIdHelper) < wmic api call failed:
Command execution failed (exit code 0):
C:\Program Files (x86)\iikoRMS\Server\Tomcat7\temp\iiko4387285390340326087.vbs(31, 1) (null): 0x80041010

[2017-12-18 15:28:25,987] DEBUG [localhost-startStop-1] (resto.licensing.hardware.HardwareIdHelper) < getPropertyFromCmd args: wmic baseboard get serialnumber /format:"C:\Windows\system32\wbem\texttable.xsl"
[2017-12-18 15:28:26,019] INFO [localhost-startStop-1] (resto.licensing.hardware.HardwareIdHelper) < wmic.exe call failed:
Command execution failed (exit code 44135):
baseboard - Alias not found.
....
Caused by: resto.RestoException: Cannot get hardware info.

Вирішення:
Потрібно вирішити проблему з WMI як наприклад описано в статті.

Ще один варіант, як ми вирішували таку проблему у прямого клієнта:
1) Зупинили службу Windows
Management Instrumentation (net stop winmgmt) Інструментарій управління Windows
2) Перейменували папку %windir%\System32\Wbem\Repository в %windir%\System32\Wbem\Repository_bad
3) Запустили службу Windows Management Instrumentation (net stop winmgmt)
4) Налаштували автозапуск та запустили службу Windows Management Instrumentation Driver Extensions
5) Налаштували автозапуск та запустили службу WMI Performance Adapter
6) Запустили з командного рядка від імені адміністратора команду rundll32 wbemupgd, RepairWMISetup