Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


WMI Services Question

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,59653
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WMI Services Question
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 WMI Services Question - 4/30/2008 3:36:10 AM   
  netman06

 

Posts: 99
Score: 0
Joined: 10/19/2006
Status: offline
Hello,

I would like to know how I can get ("Select * from Win32_Service where Name='W3SVC'"), to check for mulitple services at the same time.

I want to check on IISADMIN and W3SVC, and put them into the colRunningServices.

So that I can output them to the echo string.

Thanks,

Mike

Here is my code for these.


      
 
 
Post #: 1
 
 RE: WMI Services Question - 4/30/2008 3:43:29 AM   
  dm_4ever


Posts: 2174
Score: 32
Joined: 6/29/2006
From: Orange County, California
Status: offline
WHERE Name='XXXX' OR Name='XBC' OR Name='ABC'

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to netman06)
 
 
Post #: 2
 
 RE: WMI Services Question - 4/30/2008 6:17:45 AM   
  netman06

 

Posts: 99
Score: 0
Joined: 10/19/2006
Status: offline
HI, dm_4ever

Thanks, That did it. I learned something new.

Mike

(in reply to dm_4ever)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WMI Services Question Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts