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.

33 lines
1.1 KiB

  1. on error resume next
  2. const wbemPrivilegeCreateToken = 1
  3. const wbemPrivilegePrimaryToken = 2
  4. const wbemPrivilegeLockMemory = 3
  5. const wbemPrivilegeIncreaseQuota = 4
  6. const wbemPrivilegeMachineAccount = 5
  7. const wbemPrivilegeTcb = 6
  8. const wbemPrivilegeSecurity = 7
  9. const wbemPrivilegeTakeOwnership = 8
  10. const wbemPrivilegeLoadDriver = 9
  11. const wbemPrivilegeSystemProfile = 10
  12. const wbemPrivilegeSystemtime = 11
  13. const wbemPrivilegeProfileSingleProcess = 12
  14. const wbemPrivilegeIncreaseBasePriority = 13
  15. const wbemPrivilegeCreatePagefile = 14
  16. const wbemPrivilegeCreatePermanent = 15
  17. const wbemPrivilegeBackup = 16
  18. const wbemPrivilegeRestore = 17
  19. const wbemPrivilegeShutdown = 18
  20. const wbemPrivilegeDebug = 19
  21. const wbemPrivilegeAudit = 20
  22. const wbemPrivilegeSystemEnvironment = 21
  23. const wbemPrivilegeChangeNotify = 22
  24. const wbemPrivilegeRemoteShutdown = 23
  25. set service = getobject ("winmgmts:root/scenario26")
  26. service.security_.privileges.Add wbemPrivilegeDebug
  27. set obj = service.get ("Scenario26.key=""x""")
  28. if err <> 0 then
  29. WScript.Echo Hex(Err.Number), Err.Description
  30. end if