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: / 2
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 38 guests online

Training

UPK Training

UPK Developer Training Course Description  Overview Understanding Developer menu and toolbar itemsSetting Developer PreferencesManaging FoldersManaging DocumentsCreating Views
+ Full Article

More on Training

Featured

Using Office Clipboard

One of the drawbacks of Windows Clipboard is its inability to retain several items. It can only retain the last saved one. Microsoft Office, however, has a feature that can save multiple items from...
+ Full Article

More Featured Articles

Sharepoint

Setting up an Workflow

Workflow can be used to initiate action on a document or item. For example, one can collect feedback on a document or route it for approval etc. Workflow can also be associated with a list. The...
+ Full Article

More on Sharepoint

Windows

Using the Shift Key

The most common use of the Shift key is to use Capital letters while typing. There are other uses of the Shift key, that might come in handy.
+ 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