Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. AshGoon

    SQL Query to be run from a vbscript in SCOM 2007

    Hi all I'm pretty new to both sql queries and vbscript, and yet have been tasked to create a script to run a sql query and add the results to SCOM for alerting and performance data!! Anyway, I have a query supplied by the vendor and need to know how to incorporate it into a script. The query...
  2. AshGoon

    Undefined variable error

    thx for the replies phv. ok so a little clearer - understand about option explicit. regards the function wmistatus, still not clear on what/how i should code this? do i need to put a value when the function is called, and how do i define this? the book i'm using isn't clear on how i define the...
  3. AshGoon

    Undefined variable error

    ok, i'm really confused. corrected that, but now i'm getting - variable is undefined: 'objitem'. why does that need to be declared - i'm sure itr doesn't does it? is there a more funadamental problem with the script?
  4. AshGoon

    Undefined variable error

    thanks, good to know where the problem is - only i don't know why? as there is no argument, the function pair is empty. i don't know what i shouls be putting in the 1st set though. initially it was blank and i was still getting errors, so tried it with the object, but it was guesswork. what...
  5. AshGoon

    Undefined variable error

    All i am trying to write a script for mom 2007, which will check for wmi and do an nslookup. i'm getting stuck with some of the syntax as i'm new to all this, was wondering if someone could help? Script has been split into 2 for now, 1st part is this: Option Explicit Dim oArgs, oShell, fso...

Part and Inventory Search

Back
Top