Skip to main content
Aug 7, 2019 3:58 PM UTC
Question

How to get the result of windows service running status on thingworx?

I am trying to show the windows services status (running or stopped) on thingworx? can someone please suggest how it can be done?

2 replies

Aug 7, 2019 4:09 PM UTC

Hello,

 

For that you'll need to write a server-side extension (take a look at ThingWorx Extension SDK). In this extension you will use Java's Runtime.exec() to execute command line "sc query", parse its result and wrap it in an INFOTABLE.

 

Regards,
Constantine

Aug 8, 2019 8:01 AM UTC

@HemapradhapN I quickly hacked a working example, feel free to reuse it: https://github.com/vilia-fr/twxscext

It requires Windows SDK, please read description carefully before using it.