Files
Investidor-V2/outputs/investmoz-parques-QA-20261016/stop-own-qa.js
T
nala cef6e201c7
tests / ci (push) Canceled after 0s
versao nrgocios 2
2026-10-16 20:11:05 +02:00

5 lines
455 B
JavaScript

var service=new ActiveXObject('WbemScripting.SWbemLocator').ConnectServer('.', 'root'+String.fromCharCode(92)+'cimv2');
var p=service.Get('Win32_Process.Handle="27556"');var line=String(p.CommandLine||'').toLowerCase();
if(String(p.Name).toLowerCase()!=='php.exe' || line.indexOf('127.0.0.1:18532')<0 || line.indexOf('parques-qa-20261016')<0){throw new Error('QA server identity does not match');}
WScript.Echo('Owned QA server stopped: '+p.Terminate());