Source code of Windows XP (NT5)
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.

52 lines
1.7 KiB

  1. @echo off
  2. rem ************************************************************
  3. rem * Test for Power.exe power configuration command-line tool *
  4. rem * by Ben Hertzberg (t-benher) *
  5. rem * Date:05-31-2001 *
  6. rem ************************************************************
  7. rem * INSTRUCTIONS: *
  8. rem * Run on an ACPI-compliant machine and compare output to *
  9. rem * file test.out. Machine must have original unmodified *
  10. rem * power schemes installed. The profiles must allow the *
  11. rem * user to enable/disabe hibernation. Make sure that *
  12. rem * Power.exe is in your path. *
  13. rem ************************************************************
  14. rem * NOTES: *
  15. rem * 1) This simple test is by no means comprehensive. *
  16. rem * 2) This test will leave your system with hibernation *
  17. rem * enabled and the "Always On" power scheme activated. *
  18. rem ************************************************************
  19. rem
  20. rem Establish default settings
  21. rem
  22. power /setactive "Always On"
  23. rem
  24. rem Toggle hibernation
  25. rem
  26. power /hibernate off
  27. power /hibernate on
  28. rem
  29. rem Try out a test scheme
  30. rem
  31. power /create Test
  32. power /list
  33. power /change Test /monitor-timeout-ac 10
  34. power /change Test /monitor-timeout-dc 5
  35. power /change Test /disk-timeout-ac 10
  36. power /change Test /disk-timeout-dc 5
  37. power /change Test /standby-timeout-ac 20
  38. power /change Test /standby-timeout-dc 15
  39. power /change Test /hibernate-timeout-ac 25
  40. power /change Test /hibernate-timeout-dc 20
  41. power /query Test
  42. power /setactive Test
  43. power /setactive "Always On"
  44. power /delete Test