Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


launch exchange vbs wmi script from non-exchange server

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> launch exchange vbs wmi script from non-exchange server
  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 >>
 launch exchange vbs wmi script from non-exchange server - 10/20/2007 10:23:53 PM   
  maarten

 

Posts: 1
Score: 0
Joined: 10/20/2007
Status: offline
Hi all,

I have a script that checks exchange performance indicators via WMI and it works perfect if I launch it from the exchange server where the wmi namespace is available


Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2\Applications\Exchange")



Do you have an idea if I can run this script remotely from a normal w2k3 member server? by importing the exchange wmi namespaces for example? the goal is to have all monitoring scripts on a central w2k3 memberserver instead of spreading all scripts on the dedicated servers (exch, sql, ad,...)

thanks!

Maarten.
 
 
Post #: 1
 
 RE: launch exchange vbs wmi script from non-exchange se... - 10/21/2007 4:13:13 AM   
  DiGiTAL.SkReAM


Posts: 1194
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
Can't you replace the strComputer variable with the name of the Exchange server?  WMI queries CAN be run against remote machines.

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to maarten)
 
 
Post #: 2
 
 
 
  

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 >> launch exchange vbs wmi script from non-exchange server 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