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 — System Maintenance —
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

defrag c:
echo — System maintance complete —

Leave a Reply

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

You are commenting using your 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