802dotjohn
Technical User
- Dec 4, 2008
- 5
I have looked for a couple of days now and I am still not able to borrow enough code and piece it together to work. I am a beginner when it comes to trying to write this stuff. I have looked through this site as well as others including the purchase of a few books to help. I still can't get it.
What I am trying to do is run a vbscript on a local computer via a Group policy object. I would like the script to query the local computer to see if a service exists. Iff it does not exist then I want to execute a specified file.
I have found serveral ways to list services, but I don't know how to make an if not exists then X statement work after gathering this data.
Hope someone could give me a point in the right direction.
Thanks,
John
What I am trying to do is run a vbscript on a local computer via a Group policy object. I would like the script to query the local computer to see if a service exists. Iff it does not exist then I want to execute a specified file.
I have found serveral ways to list services, but I don't know how to make an if not exists then X statement work after gathering this data.
Hope someone could give me a point in the right direction.
Thanks,
John