WMI and VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarkyG
    New Member
    • Mar 2008
    • 1

    WMI and VB

    Hi
    I need some help please , i have created a script that gets a list of servers from a db and goes of and gets Ping results, Storage info etc and writes it back to the DB using VB and WMI
    Im using the following to authenticate

    Set objWMIService = GetObject("winm gmts:{impersona tionLevel=imper sonate}!\\" & strComputer & "\root\cimv 2")

    Now my problem is that i have multiple Non Trusted Domains and i want to query against these and am not sure how to
    I think what i need to do is to change the impersonationle vel from impersonate to specific user credentials for each domain but im not sure how to do this

    any help would be appreciated

    Thanks
    Mark
Working...