Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
505 B

  1. '
  2. ' This sample illustrates how to retrieve registry data from WMI. Note that the accompanying MOF
  3. ' (registry.mof) must be compiled and loaded for this sample to run correctly.
  4. '
  5. on error resume next
  6. set transports = GetObject("winmgmts:{impersonationLevel=impersonate}!root/registryScriptExample").InstancesOf ("RegTrans")
  7. for each transport in transports
  8. WScript.Echo "Transport " & transport.TransportsGUID & " has name [" & transport.Name & "] and Enabled=" _
  9. & transport.Enabled
  10. next