Then it dawned on me that Active Directory must have a featue in the General Group Policies to enable a program to be run at login and after an hour of trawling through the local GPO i found a feature that does just what i wanted and many people have been asking for.
Note that i am not trained in the use of windows server and have been doing work at a local school with a relative, being the only on site technitian. they had been having problems with User profiles causing machine slow downs, hangs and crashes, so helping with other general work i mentiond crap cleaner to him. i started to Trawl throught the servers GPO looking for a helpfull feature, also note i have over 6 years of computer building and maintenance experience so it is not like i was going to destory an entire schools Domain and DHCP Host server lol.
so heres the proof in the pudding and try it at your own discrimination, but it works and it works well but will take time to clean the machines completely if your users are machine hoppers since it will only clean the profile of the user that logs on.
CCleaner must be installed on all client computers for this method to be of any effect
running it as a scheduled task on the server couldnt kill either - no damage so far
first we find the Run Logon feature in the User Configuration/Administrative Templates/system subset depending on verion of server run it may have another hierarchal order
(server 03 in example Server 08 in Group policy 1 Image)
Then select logon and select the feature "run these programs at user logon"
Select Enable then select SHOW in the square box to bring up the Programs dialogue box
select add and input the path "Installation directory\CCleaner\CCleaner.exe /AUTO"
(example shown in Group policy 2 image)
This is a tried and tested method and i am currently rolling it out over the schools computer network in aid of my relative
Also if you have multiple user policys make sure to add it to every policy or it will only work on the policys you have enabled it on
IE in the school we have a Pupils and a Teachers policy giving different privilages to each group
Sticky this thread as many people have asked about this and without CCleaners ability to clean multiple profiles this seems the only viable option for Domain controlled computers also when CCleaner gains the ability of multiple profile cleaning it would only Aid this method in cleaning profiles instantly as a user logs on as it is far easier then setting up task scheduler on every single computer when all you need is to type in one string on a policy
sorry about any bad grammer had a long day and rather tired at this point as ive just setup an entire rooms worth of computers earlier today aswell as having college lol
Your local friendly techie