/build/static/layout/Breadcrumb_cap_w.png

run a reg file via Scripts

Hi

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]
"ProxyEnable"=dword:00000001
"ProxyServer"="10.10.0.10:8008"
"ProxyOverride"=""  

3 Comments   [ + ] Show comments
  • Are you running the script as the currently logged in user? - chucksteel 7 years ago
  • nope i use the last option.

    Run the Online Shell Script and KScripts in the context of specified credentials. - rahimpal 7 years ago
    • The settings most likely won't apply to the current user, in that case. - chucksteel 7 years ago
  • 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. - hendra.tommy 6 years ago
    • Can you share your script details? Perhaps in another post? - chucksteel 6 years ago
      • Hi, I manage to solve this using %WINDIR%\Sysnative\regedt.exe - hendra.tommy 6 years ago

Answers (6)

Posted by: anonymous_9363 7 years ago
Red Belt
3
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.
Posted by: anonymous_9363 7 years ago
Red Belt
2
Any client I've ever been at has done this via Group Policy.

Comments:
  • 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.. - rahimpal 7 years ago
Posted by: anonymous_9363 7 years ago
Red Belt
2
GPOs can be scoped using AD groups.
Posted by: rockhead44 7 years ago
Red Belt
2
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.

Comments:
  • 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? - rahimpal 7 years ago
    • 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. - rockhead44 7 years ago
Posted by: Desktop Jockey 7 years ago
Second Degree Green Belt
1
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.
Posted by: akmagnum 7 years ago
Red Belt
0

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

machine's.

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

You can set any reg keys there

e.g

Don't be a Stranger!

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

Sign up! or login

Share

 
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