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
325 B

  1. on error resume next
  2. Set t_Service = GetObject("winmgmts://./root/default")
  3. Set t_Class = t_Service.Get("__SystemClass")
  4. Set t_SubClass = t_Class.SpawnDerivedClass_
  5. t_Subclass.Path_.Class = "SPAWNCLASSTEST00"
  6. t_Subclass.Put_
  7. if err <> 0 then
  8. WScript.Echo Err.Number, Err.Description, Err.Source
  9. end if