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

  1. ' The following sample deletes the class MyClass.
  2. on error resume next
  3. Set objServices = GetObject("cim:root/default")
  4. objServices.Delete "MyClass"
  5. if Err <> 0 Then
  6. WScript.Echo Err.Source, Err.Number, Err.Description
  7. else
  8. WScript.Echo "Success"
  9. end if