KACE Product Support Question

C:\KACE\Applications\12\enable_uac.vbs error

02/07/2018 1547 views
I'm trying to wrap up on a fresh Windows 10 v1709 scripted installation and am running across an error about UAC right at the end that requires user input to clear and allow the process to finish out.

The Post-Install tasks of the image, if it helps in troubleshooting are:
* Activate Win 10 Enterprise
* Install SEP
* Install Office 2016 w/ shortcuts
* Activate Office 2016
* Set my local admin to have no expiry
* Remove my local admin from Users
* Disable 'People' (taskbar icon)
* Install Java x86
* Install Java x64
* Install Chrome x64
* Install Firefox ESR
* Install VLC
* Join Domain and OU
* Copy a folder with some local GPO files
* Import those GPOs with LGPO.exe

The error I get at the completion of my task,  which is also hopefully attached as a picture, is:

Script C:\KACE\Applications\12\enable_uac.vbs
Line: 28
Char: 5
Error: Invalid root in registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA".
Code: 80070005
Source: WshShell.RegWrite

My understanding is that this is the section of imaging where Kace "restores UAC" to whatever state it was before it did it's thing, which would be the Windows default UAC setting, which is on.

Out of curiosity, I would like to leave the machine in a UAC OFF state when imaging completes, which is how I did it when I just captured an image whole and re-deployed that. As this is a scripted installation, I'm not sure how to set that within this process that doesn't interfere with Kace's disabling/re-enabling UAC scripts.

I have a regular working script that will disable UAC, so if it's just a matter of putting back in as a task, I've done that and still get this error.
0 Comments   [ + ] Show comments


All Answers

There is a text file C:\KACE\Engine\UAC.txt that holds this information. What I did was replace this file with a file named the same thing but in the file it just contained "0" (Zero, no quotes or anything), instead of a "1". I put this UAC.txt file and a bat file in a zip folder and set it to run as an application post install task.

The bat file contained:
C:\Windows\System32\xcopy.exe "%~dp0UAC.txt" "C:\KACE\Engine\" /y 

The post install task just needs to have the name of the bat file in it to kick off.

You can test this before going through all the steps by changing this file manually during the build process and see if it has the desired outcome.

Good luck!

EDIT: as far as the error, im not sure exactly. Might be an issue with that file not being there or something?
Answered 02/07/2018 by: ISEKOLD
Orange Senior Belt

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