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.

15 lines
315 B

  1. On Error Resume Next
  2. Set Service = GetObject("winmgmts://./root/default")
  3. Set aClass = Service.Get
  4. aClass.Path_.Class = "SINGLETONTEST00"
  5. aClass.Qualifiers_.Add "singleton", false
  6. aClass.Qualifiers_("singleton").Value = true
  7. aClass.Put_ ()
  8. if Err <> 0 Then
  9. WScript.Echo Err.Description
  10. End if