Skip to main content
1-Visitor
August 7, 2019
Question

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

  • August 7, 2019
  • 1 reply
  • 1077 views

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

1 reply

18-Opal
August 7, 2019

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

18-Opal
August 8, 2019

@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.