Featured

Windows Defrag Utility

When data files are not stored contiguously (adjacent to each other) it is called fragmentation. This causes system overhead resulting from multiple Read/Writes and reduces performance. Windows Disk...
+ Full Article

More Featured Articles

Most Read

Most Read

Setting up Team Discussion Board

SharePoint 2007 has a Team Discussion Board that is used to initiate discussion and get replies on topics of interest. This article outlines the steps required to setup a discussion board, managing...
+ Full Article

More Popular Articles

Recent Articles

Recent Articles

Repeating Excel Header Rows

If your worksheet has several pages, it will be useful to have the header row repeat in all the pages. This will improve productivity as the user need not flip to the first page to view the header...
+ Full Article

More Recent Articles
Automate Disk Clean Utility in Windows XP PDF Print
User Rating: / 1
PoorBest 
Computing - Windows
Disk Cleanup utility allows you to delete temporary internet files, recycle bin contents, temporary files, web client files, as well as compress files that have not been accessed for a while to free up space on your hard disk. You can also automate Disk Cleanup utility to run at periodic intervals and store the settings in the Registry for subsequent runs.

Disk Cleanup utility uses sagset/sagerun command line options in combination with the Task Scheduler to automate disk clean.

/sageset:n - Displays Disk Cleanup Settings and stores the selected values in the Registry. 'n' can be any integer from 0 to 65535. You can select different Disk Cleanup Settings and assign a value for each of them. For example, you can assign a value of '1' to clear Temporary Files and schedule it to run on a daily basis and assign a value of '2' to delete Recycle bin and schedule it to run on a weekly basis and so on.

/sagerun:n - This runs the tasks that are defined by sageset:n

Setting Up

  • Select Start > Run and enter cleanmgr /sageset:100 in the dialog box ( You can enter any value from 0 to 65535 as the value).

Autoclean Run Dialog box

  • Click 'OK'. Disk Cleanup Settings window appears.

Disk Cleanup Settings Image

  • Select the files to be deleted by cleanmgr and click OK.
  • Open Service panel and ensure 'Task Scheduler' service is running. If not, start the 'Task Scheduler' and proceed with the below mentioned steps.
  • Select Start > Programs > Accessories > System Tools > Scheduled Tasks.
  • Open Add Scheduled Task. 'Scheduled Task Wizard' appears.
  • Click the <Next> button.
Scheduler Wizard
  • Click the program you want to run. Click the 'Browse' button to select more programs. Select cleanmgr (for this example it is located at c:\windows\system32 directory).
  • Check an appropriate 'Perform this task' option. Options are:
    • 'Daily
    • Weekly
    • Monthy
    • One time only
    • When my computer starts
    • When I log on. Click the 'Next' button.
  • Select the Start Time and Start Date for this task. Click 'Next'.
  • Enter the username and password of the user. The task will fail if no user credentials are supplied. Click 'Next'.
  • Select 'Open advanced properties for this task when I click Finish' checkbox to set runtime properties. This is required step for Disk Clean automation.
Appending sagerun value image
  • Append the following in the 'Run' field /sagerun:100 (100 is the value of sageset parameter in this example. Substitute this value if you had entered a different sageset value).
  • Click the 'Apply' button. Enter Account Information details and click 'OK'.
  • Disk Clean utility will run at the designated schedule based on the parameters defined.
Trackback(0)
Comments (0)add
Write comment

security image
Write the displayed characters


busy
Last Updated on Saturday, 12 January 2008 17:04
 

now browsing!

We have 26 guests online

Sharepoint

Create a custom New Item or Edit Form

One of the intriguing aspects of the NewForm.aspx or EditForm.aspx in Sharepoint 2007 is that the fields are not displayed and hence not editable. For instance, you may wish to selectively hide...
+ Full Article

More on Sharepoint

Windows

Schedule Net Meeting using Outlook

Using Microsoft Outlook you can set up Net Meeting, invite participants, and have Net Meeting start automatically at the scheduled time.
+ Full Article

More on Windows
 

Sedo - Buy and Sell Domain Names and Websites project info: referpages.com Statistics for project referpages.com etracker® web controlling instead of log file analysis