How to Run Windows XP System Maintenance With Automated Scripts

A computer needs a few things done to it on a regular basis to ensure that it continues running smoothly. This guide will show you how to set your Windows XP computer to automatically take care of it self using the task scheduler and batch...

Method 1 of 5:

Disk Cleanup First Phase

Disk Cleanup - Windows bundled tool that performs Disk Space Cleanup of no longer needed files. To run this task you will need Administrative privileges

  1. Picture 1 of How to Run Windows XP System Maintenance With Automated Scripts
    Click on "Start" Menu.
  2. Picture 2 of How to Run Windows XP System Maintenance With Automated Scripts
    Click on "Run"
  3. Picture 3 of How to Run Windows XP System Maintenance With Automated Scripts
    Type "CMD" in the run box; Press Enter. This will bring up the DOS Prompt Window.
  4. Picture 4 of How to Run Windows XP System Maintenance With Automated Scripts
    Type "CLEANMGR /sageset:n"; Press Enter. where n is an arbitrary number from 0 through 65535.
  5. Picture 5 of How to Run Windows XP System Maintenance With Automated Scripts
    Check the boxes of the files you wish to clean up.
    1. A window will appear similar to the screen shot] - What you are doing is telling the computer that when you run CLEANMGR with the Registry Entry n, to clean these files.
  6. Picture 6 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "OK" when you are finished selecting.
Method 2 of 5:

Disk Cleanup Second Phase

  1. Picture 7 of How to Run Windows XP System Maintenance With Automated Scripts
    Click on "Start" Menu.
  2. Picture 8 of How to Run Windows XP System Maintenance With Automated Scripts
    Click on "All Programs"
  3. Picture 9 of How to Run Windows XP System Maintenance With Automated Scripts
    Click on "Accessories"
  4. Picture 10 of How to Run Windows XP System Maintenance With Automated Scripts
    Click on "System Tools"
  5. Picture 11 of How to Run Windows XP System Maintenance With Automated Scripts
    Click on "Scheduled Tasks"
  6. Picture 12 of How to Run Windows XP System Maintenance With Automated Scripts
    Double-Click "Add Scheduled Task" The schedule task wizard will open.
  7. Picture 13 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  8. Picture 14 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Browse"
  9. Picture 15 of How to Run Windows XP System Maintenance With Automated Scripts
    Browse to "C:WINDOWSSystem32" Please note that if you do not have a "C:WINDOWS" look for "C:WINNT" instead.
  10. Picture 16 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "cleanmgr.exe"
  11. Picture 17 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Weekly"
  12. Picture 18 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  13. Picture 19 of How to Run Windows XP System Maintenance With Automated Scripts
    Choose Run Time that is convenient for you. Sunday at 2AM is a good setting.
  14. Picture 20 of How to Run Windows XP System Maintenance With Automated Scripts
    Enter the Admin User/Password
  15. Picture 21 of How to Run Windows XP System Maintenance With Automated Scripts
    Check "Open advanced properties"
  16. Picture 22 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  17. Picture 23 of How to Run Windows XP System Maintenance With Automated Scripts
    From the "Task" Tab update the Run line with the following: "C:WINDOWSsystem32cleanmgr.exe /sagerun:n" using the same n that was set in the Disk Cleanup First Phase Section
  18. Picture 24 of How to Run Windows XP System Maintenance With Automated Scripts
    From the "Settings" Tab, under "Power Management" check off the "Wake the Computer"
Method 3 of 5:

Disk Check First Phase

Check Disk - Windows bundled tool for checking for errors and repairing them on your hard drive, the next time the computer is rebooted.

  1. Picture 25 of How to Run Windows XP System Maintenance With Automated Scripts
    Return the Focus to the DOS Prompt Window, by clicking the Window Border.
  2. Picture 26 of How to Run Windows XP System Maintenance With Automated Scripts
    Type "notepad"; Press Enter.
  3. Picture 27 of How to Run Windows XP System Maintenance With Automated Scripts
    Type echo y|chkdsk C: /f/r
    1. echo y|chkdsk for each additional drive letter: /f/r
    2. shutdown /r
  4. Picture 28 of How to Run Windows XP System Maintenance With Automated Scripts
    When finished save the file by Clicking on "File"
  5. Picture 29 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Save As"
  6. Picture 30 of How to Run Windows XP System Maintenance With Automated Scripts
    In the "File Name" line type "checkdisk.bat" with the Double-Quotation Marks.
Method 4 of 5:

Disk Check Second Phase

  1. Picture 31 of How to Run Windows XP System Maintenance With Automated Scripts
    Return the Focus to the "Scheduled Tasks"
  2. Picture 32 of How to Run Windows XP System Maintenance With Automated Scripts
    Double-Click "Add Scheduled Task" The schedule task wizard will open.]
  3. Picture 33 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  4. Picture 34 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Browse"
  5. Picture 35 of How to Run Windows XP System Maintenance With Automated Scripts
    Browse to the location where you save the file "checkdisk.bat"
  6. Picture 36 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Weekly"
  7. Picture 37 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  8. Picture 38 of How to Run Windows XP System Maintenance With Automated Scripts
    Choose Run Time that is convenient for you, Monday at 2AM is a good setting.
  9. Picture 39 of How to Run Windows XP System Maintenance With Automated Scripts
    Enter the Admin User/Password
  10. Picture 40 of How to Run Windows XP System Maintenance With Automated Scripts
    Check "Open advanced properties"
  11. Picture 41 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  12. Picture 42 of How to Run Windows XP System Maintenance With Automated Scripts
    From the "Settings" Tab, under "Power Management" check off the "Wake the Computer"
Method 5 of 5:

Disk Defrag Phase

Disk Defrag - Windows bundled tool that reorganizes files more efficiently. Windows is very sloppy when it comes to handling files. Instead of saving them where they belong on your hard drive Windows sticks them where ever it's most convenient. Over time this will slow your computer down.

  1. Picture 43 of How to Run Windows XP System Maintenance With Automated Scripts
    Return the Focus to the "Scheduled Tasks"
  2. Picture 44 of How to Run Windows XP System Maintenance With Automated Scripts
    Double-Click "Add Scheduled Task" The schedule task wizard will open.
  3. Picture 45 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  4. Picture 46 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Browse"
  5. Picture 47 of How to Run Windows XP System Maintenance With Automated Scripts
    Browse to "C:WINDOWSSystem32" Please note that if you do not have a "C:WINDOWS" look for "C:WINNT" instead.
  6. Picture 48 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "defrag.exe"
  7. Picture 49 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Weekly"
  8. Picture 50 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  9. Picture 51 of How to Run Windows XP System Maintenance With Automated Scripts
    Choose Run Time that is convenient for you, Tuesday at 2AM is a good setting.
  10. Picture 52 of How to Run Windows XP System Maintenance With Automated Scripts
    Enter the Admin User/Password
  11. Picture 53 of How to Run Windows XP System Maintenance With Automated Scripts
    Check "Open advanced properties"
  12. Picture 54 of How to Run Windows XP System Maintenance With Automated Scripts
    Click "Next"
  13. Picture 55 of How to Run Windows XP System Maintenance With Automated Scripts
    From the "Task" Tab update the Run line with the following: "C:WINDOWSsystem32defrag.exe C"
  14. Picture 56 of How to Run Windows XP System Maintenance With Automated Scripts
    From the "Settings" Tab, under "Power Management" check off the "Wake the Computer"
  15. Picture 57 of How to Run Windows XP System Maintenance With Automated Scripts
    Repeat this process for each additional drive letter replacing C for the current drive that you wish to defrag, and add a day to the Schedule.
Update 04 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile