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.

42 lines
1.4 KiB

  1. on error resume next
  2. set locator = CreateObject("WbemScripting.SWbemLocator")
  3. set p = locator.security_.privileges
  4. p.addasstring "SeSecurityPrivilege"
  5. p.addasstring "Seassignprimarytokenprivilege"
  6. p.addasstring "Seauditprivilege"
  7. p.addasstring "SeBackupPrivilege"
  8. p.addasstring "Sechangenotifyprivilege"
  9. p.addasstring "Secreatepagefileprivilege"
  10. p.addasstring "Secreatetokenprivilege"
  11. p.addasstring "SeLockMemoryPrivilege"
  12. p.addasstring "SeIncreaseQuotaPrivilege"
  13. p.addasstring "SeMachineAccountPrivilege"
  14. p.addasstring "SeTcbPrivilege"
  15. p.addasstring "SeTakeOwnershipPrivilege"
  16. p.addasstring "SeLoadDriverPrivilege"
  17. p.addasstring "SeSystemProfilePrivilege"
  18. p.addasstring "SeSystemtimePrivilege"
  19. p.addasstring "SeProfileSingleProcessPrivilege"
  20. p.addasstring "SeIncreaseBasePriorityPrivilege"
  21. p.addasstring "SeCreatePermanentPrivilege"
  22. p.addasstring "SeRestorePrivilege"
  23. p.addasstring "SeShutdownPrivilege"
  24. p.addasstring "SeDebugPrivilege"
  25. p.addasstring "SeSystemEnvironmentPrivilege"
  26. p.addasstring "SeRemoteShutdownPrivilege"
  27. p.addasstring "SeRemoteShutdownPrivilege",false
  28. p.addasstring "SeUndockPrivilege"
  29. p.addasstring "SeSyncAgentPrivilege"
  30. p.addasstring "SeEnableDelegationPrivilege"
  31. wscript.echo p.count
  32. for each pr in p
  33. WScript.Echo pr.Identifier & " [" & pr.Name & "] [" & pr.DisplayName & "]" & ": " & pr.IsEnabled
  34. next
  35. if err <> 0 then
  36. WScript.Echo Hex(Err.Number), Err.Description, Err.Source
  37. end if