Hi Everybody,

My sysprep image works OK but there is one final step that I need to make it perfect and that is the kcleanup.
This is the final step that starts when the image is finished.

How do I automate this? Now I logon manually ads an admin and then kcleanup starts.

I do this as an Admin because when the a "normal" users logs on they get errors because they are not Admin.

Is there a known post install task that anyone lnows about?

Thank you in advance for your help.

Kins regards,

Ron Beugeling

1 Comment   [ - ] Hide Comment


  • Thank you for your help. I will look in to it when I have time available and get back to you. That will be however in the 2015! :) Kind Regards, Ron
Please log in to comment

Answer this question or Comment on this question for clarity


set admin auto login with a count of one as the last post task and also include a shutdown -r -t 60 so kcleanup will run and then it reboots so it is no longer logged in as admin.
Answered 12/08/2014 by: SMal.tmcc
Red Belt

Please log in to comment

As SMal mentioned, it seems your autologon count is off. If you're on the 3.6 or newer of K2, you can download and run a tool called K2 Advisor that will examine your images and give you quite a bit of useful info, including recommended autologon count.

Once you have that count, you can either adjust your unattend.xml accordingly, or there is also a script that runs as a mid-level task to set the autologon count for you. Both tools I mentioned are available here at ITNinja on the K2000 Deployment Workbench.

Answered 12/08/2014 by: BHC-Austin
Fourth Degree Black Belt

Please log in to comment