WMI, SAM, ADSI call or something else? Semantics Question.



Question

This is a semantics question. I am trying to figure out what I am
calling when I run this script. Is it a WMI call, SAM call, ADSI call
or something else? All my previous WMI calls were constructed like

Set objWMI = GetObject("winmgmts://" & SystemName)
....
strSQL = "SELECT * FROM Win32_SystemEnclosure"
Set objQRY = objWMI.ExecQuery(strSQL,,48)

But this is how I am getting the information.

Set objQRY = GetObject("WinNT://" & SystemName)
objQRY.Filter = Array("Group")
....
Set i = GetObject(objWMI.AdsPath & ",Group")

Thanks

-Matt-

.



Relevant Pages

  • WMI Script not working on a particular workstation...
    ... In one of our s/ws in starting jst b4 the login page I m calling ... a script file to get the MAC Id of the client workstation and then ... I m using WMI in my script. ... Are there any dependencies for WMI. ...
    (microsoft.public.windowsxp.wmi)
  • RE: Does WMI have to be installed on Remote Computer?
    ... IMHO this looks like a well constructed and very vell commented script. ... WMI comes as standard on w2k w2k3 and xp, ... does WMI need to be installed on the remote computer in order for a ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)
  • Re: Look over this script.....could anything be done better?
    ... will be unable to connect with WMI. ... With this version of the script I have kept that included because the script that enumerates all of the servers has some servers that no longer exist. ... Dim objWMIService, colFixedDrives, objFD ...
    (microsoft.public.scripting.vbscript)
  • Re: Create simple file share on the fly
    ... WMI share routine faithfully works. ... You can place the command line below as the final line in your WMI ... You might experiment with actual workstations to see if the script is ... the shares that I make from the Windows GUI, ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Starting Excel and doing "stuff"...
    ... I have a WMI .vbs that monitors a folder for new files. ... This code first creates an event filter that polls the repository every 5 ... can use another script or utilities like wbemtest.exe or CIM Studio). ... Active script event consumer has limitations, you can't make Excel visible, ...
    (microsoft.public.excel.programming)

Quantcast