Header Ads

test

How to Run Windows XP System Maintenance With Automated Scripts

Disk Cleanup First Phase

  1. 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. Click on "Start" Menu.
  2. Click on "Run"
  3. Type "CMD" in the run box; Press Enter.
  This will bring up the DOS Prompt Window.
  1. Type "CLEANMGR /sageset:n"; Press Enter.
  where n is an arbitrary number from 0 through 65535.
  1. Check the boxes of the files you wish to clean up.
    • 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.
  2. Click "OK" when you are finished selecting.


Disk Cleanup Second Phase

  1. Click on "Start" Menu.
  2. Click on "All Programs"
  3. Click on "Accessories"
  4. Click on "System Tools"
  5. Click on "Scheduled Tasks"
  6. Double-Click "Add Scheduled Task"
  The schedule task wizard will open.
  1. Click "Next"
  2. Click "Browse"
  3. Browse to "C:\WINDOWS\System32\"
  Please note that if you do not have a "C:\WINDOWS\" look for "C:\WINNT\" instead.
  1. Click "cleanmgr.exe"
  2. Click "Weekly"
  3. Click "Next"
  4. Choose Run Time that is convenient for you. Sunday at 2AM is a good setting.
  5. Enter the Admin User/Password
  6. Check "Open advanced properties"
  7. Click "Next"
  8. From the "Task" Tab update the Run line with the following: "C:\WINDOWS\system32\cleanmgr.exe /sagerun:n" using the same n that was set in the Disk Cleanup First Phase Section
  9. From the "Settings" Tab, under "Power Mangement" check off the "Wake the Computer"


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. Return the Focus to the DOS Prompt Window, by clicking the Window Border.
  2. Type "notepad"; Press Enter.
  3. Type echo y|chkdsk C: /f/r
       echo y|chkdsk for each additional drive letter: /f/r
shutdown /r
  1. When finished save the file by Clicking on "File"
  2. Click "Save As"
  3. In the "File Name" line type "checkdisk.bat" with the Double-Quotation Marks.


Disk Check Second Phase

  1. Return the Focus to the "Scheduled Tasks"
  2. Double-Click "Add Scheduled Task"
  The schedule task wizard will open.
  1. Click "Next"
  2. Click "Browse"
  3. Browse to the location where you save the file "checkdisk.bat"
  4. Click "Weekly"
  5. Click "Next"
  6. Choose Run Time that is convenient for you, Monday at 2AM is a good setting.
  7. Enter the Admin User/Password
  8. Check "Open advanced properties"
  9. Click "Next"
  10. From the "Settings" Tab, under "Power Mangement" check off the "Wake the Computer"


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. Return the Focus to the "Scheduled Tasks"
  2. Double-Click "Add Scheduled Task"
  The schedule task wizard will open.
  1. Click "Next"
  2. Click "Browse"
  3. Browse to "C:\WINDOWS\System32\"
  Please note that if you do not have a "C:\WINDOWS\" look for "C:\WINNT\" instead.
  1. Click "defrag.exe"
  2. Click "Weekly"
  3. Click "Next"
  4. Choose Run Time that is convenient for you, Tuesday at 2AM is a good setting.
  5. Enter the Admin User/Password
  6. Check "Open advanced properties"
  7. Click "Next"
  8. From the "Task" Tab update the Run line with the following: "C:\WINDOWS\system32\defrag.exe C"
  9. From the "Settings" Tab, under "Power Management" check off the "Wake the Computer"
  10. 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.

No comments

please write your mail id for contact: