• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

Help with VB script using wmi to service status

I have an existing script that check the status of all the service on all the servers read from an input file.  I would like to modify it to check the status and provide the detail, but for only 3 specfic service, eg

WinMagic SecureDoc Service
TSIRCSRV
OPNET Application Capture Agent
0
MatthewF
Asked:
MatthewF
  • 3
1 Solution
 
Seaton007Commented:
If you could show us your current code, then we could show you what changes to make for the result you are looking for.
0
 
MatthewFAuthor Commented:
opps...I forgot to hit the attach button, see below please
services.vbs
0
 
MatthewFAuthor Commented:
The real question is the or function in vbs. eg

  For Each objItem In colItems
 If objItem.Name = "TSIRCSRV" or If objItem.Name = "WinMagic SecureDoc Service
" or  If objItem.Name = "OPNET Application Capture Agent "


" Then
0
 
MatthewFAuthor Commented:
I figured out the solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now