Systems Management Question

run a reg file via Scripts

06/16/2017 2527 views

im trying to run this reg file but on some machines it pop ups for confirmation and on some this is not running .

Launch a program... $(KACE_SYS_DIR)
File:    cmd.exe
Parameters: /c regedit /s  "$(KACE_DEPENDENCY_DIR)\ProxyEnable.reg"

also how can enable proxy settings for all users logging into a computer via KACE?
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
3 Comments   [ + ] Show comments


  • Are you running the script as the currently logged in user?
  • nope i use the last option.

    Run the Online Shell Script and KScripts in the context of specified credentials.
    • The settings most likely won't apply to the current user, in that case.
  • Hi, any update regarding this? I need to update registry HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon!LegalNoticeCaption, there is no errors, no UAC pop up, nothing, and the job reported successfuly but the registry didn't updated.
    Tried https://support.quest.com/kace-systems-management-appliance/kb/131517/how-to-import-reg-file-via-scripting-to-64-bit-registry-hive
    But no luck either.
    • Can you share your script details? Perhaps in another post?
      • Hi, I manage to solve this using %WINDIR%\Sysnative\regedt.exe

Community Chosen Answer

If it's prompting UAC, it's trying to write to a protected area, either HKLM or a user other than the currently logged-in one.

I say again: Group Policy is the way to do this.
Answered 06/16/2017 by: VBScab
Red Belt

All Answers

Any client I've ever been at has done this via Group Policy.
Answered 06/16/2017 by: VBScab
Red Belt

  • yes that whats i planned but our team wants to do it for only few selected employees ,thats why had to check for other options..
GPOs can be scoped using AD groups.
Answered 06/16/2017 by: VBScab
Red Belt

I deploy registry keys via Offline Kscript. I upload the reg file and a simple batch file which executes the registry command. I then execute the batch file from the script.
Answered 06/16/2017 by: rockhead44
Red Belt

  • can u share the screen shot or steps, my script works but UAC window pops up with do you want to make this change, how can i skip this?
    • I upload my .reg and .bat files
      For Task 1:
      Verify - Run a batch file (input my batch commands)

      That's it. I haven't run into any UAC problems with my scripts so I can't help you there.
If you are trying to write to the HKCU hive, you will need to run it as the current user or for a selected account.
Have you tried using the "Set a registry value" option or REG ADD in scripts instead of trying to import?This should get you around the UAC problem.
Answered 06/16/2017 by: Desktop Jockey
Second Degree Green Belt

This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.

Assuming its the k1 you are working on why don't you use a script to deploy it to your


Choose new script .....add new task...... set registry value.

You can set any reg keys there


Answered 06/19/2017 by: akmagnum
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


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