CleaningComputers on a Windows Domain – [Lazy ADMIN]

Lately I have been cleaning up too many computers and need to find a way of automating everything.

A post by “StreamlinePanda” @ Piriform forums (ccleaner people) http://forum.piriform.com/index.php?showtopic=14936

Download Ccleaner portable from: http://www.ccleaner.com/download/builds/downloading-portable

Extract it to a network share, in this example it’s extracted into clean/ccleaner on a network computer called server.

Now you make a bat file called clean.bat and add this to the bat.

Code:

START servercleanCCleanerCCleaner.exe /AUTO

So now what I have done is placed the bat into the same directory as ccleaner.exe

Next thing to do is to go to your group policy managemetn console and either create a new policy or change an existing one.

Go to : User Configuration > Windows Settings > Scripts Logon/Logoff > Open the Logon item > Click “ADD” > enter the unc path to the bat file in the script name field (example: servercleanccleaner.bat )

Click OK and you are done.

Now after the group policy settings refresh (force refresh by going to command prompt and typing gpupdate /force hit enter) the computers will clean up at every logon.

You can change it to clean up at Logoff or schedule it.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>