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.

16 lines
490 B

  1. on error resume next
  2. const wbemPrivilegeDebug = 19
  3. 'set service = GetObject ("winmgmts:{impersonationLevel=impersonate}!root/scenario26")
  4. set service = GetObject ("winmgmts:root/scenario26")
  5. service.security_.privileges.Add wbemPrivilegeDebug
  6. if err <> 0 then
  7. WScript.Echo "1 ", Hex(Err.Number), Err.Description, Err.Source
  8. end if
  9. set process = service.get ("Scenario26.Key=""xy""")
  10. if err <> 0 then
  11. WScript.Echo "2 ", Err.Number, Err.Description, Err.Source
  12. end if