Software Deployment Question

K2000 - problem with "Restore UAC" and "Cleanup" post installation tasks

03/28/2016 2700 views
I've used the K2 for a while, and we're getting ready to start deploying this year's image, but I'm running into problems with a new capture that I made.

First off, I'm getting this error when UAC Restore runs. I've never seen this before on any other image we've made. 

Our last post-install tasks act like so:
  • Powershell script to join the domain to a specific OU.
  • Machine reboots
  • Machine continues with the auto login of the local administrator account.
  • Last post-install task is a script to set the auto-login count to 1, with a domain administrator account.
  • Machine reboots
  • Machine auto-logs in as a domain administrator. This way, it pulls down all the GPOs (UAC is off for our domain)
  • Restore UAC & Cleanup occurs.
  • I get this error during Restore UAC:

Also, if I hit OK, it will proceed to the kcleanup script. However, upon reboot (and it shows the task is successful), I will login to the machine, and the kcleanup files & folders are still on the machine. The cleanup script doesn't seem to have worked either.

We are on a VM K2000. version 3.7.120251

2 Comments   [ + ] Show comments


  • Also, we are imaging E5250 laptops with a Windows 7 x86 image (sysprepped, WIM)
  • I just started having this exact same problem too! I ran the tests on my K-Image to make sure it was successfully Sysprepped, and they came back good. The Restore UAC is a built-in task which is automatically tacked on to the end of your post install task list. I can edit the vbs file, but the KACE SDA will not allow me to save it back to where it belongs because of a permissions issue. Any help on this error Quest?

All Answers

Hi the image says the error is because of the .vbs.

In the vbs your are trying to find a reg value which is not present. So the vbs is showing error.
Answered 03/29/2016 by: skc
Senior White Belt

There are several different items which can cause this error, the most common ones are the sysprep process was not successful and therefore the expected registry entries expected are not being found.

Be sure the image being used to deploy does not have any anti-virus or data encryption software installed (including the K1000 agent) as these should all be post tasks. This is the most common issue with the Cleanup task at the end as when the antivirus is installed as a post task be sure to include the switches to not have it go active till the system reboots. If the antivirus installs and starts to protect/run/scan while the last tasks are being completed on the deployment it can cause the clean-up process to be slow or eventually fail.
Answered 03/29/2016 by: TheAustinDave
Brown Belt

  • I ended up re-capturing/re-sysprep, and the error is still occurring on random machines. Anti-virus is deployed via the K1000, and the K1000 agent is the 2nd to last post-install script on there. No other idea why this is happening.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ