Script to automate the Windows Desktop maintenance

  • Download and install the Ccleaner before using the script
  • Using the script able to perform Disk clean ,  Defragmentation and  run Ccleaner
  • Copy and paste the below script to a notepad, save it as .bat file

echo off

echo.
echo — System Maintenance —
echo.
copy \\ws0450\maintenance\clean.reg c:\windows\clean.reg | echo Copying registry key
regedit /s c:\windows\clean.reg | echo Deploying registry key
cleanmgr /sagerun:11 | echo Disk cleanup is running
echo Disk cleanup finished
“\program files\ccleaner\ccleaner.exe” /auto | echo CCleaner is running
echo CCleaner has finished
echo.

defrag c:
echo.
echo — System maintance complete —
echo.
pause
exit

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s