Hi John,
I am not sure I understand what you want to achieve.
As far as i can see from the script, you pass “localhost” as a parameter to the function checkOBWinSvcs. So this should query localhost.
If you want to work with parameters passed from the outside (aka Royal TS), you can use parameters defined in the connection properties:
Note, that you can use Royal TS connection Variables here as well.
As for the __Computername column: this is a column that makes sense, if you query more than one machine within one connection.
E.g. you can enter the following in the computername property: “192.168.178.10;192.168.178.11” and the connection will be issued against two hosts - to distinguish the result colums, __Computername can be used.
Let me know if this helps
cheers,
Michael