/build/static/layout/Breadcrumb_cap_w.png

Issue with importing a .reg file

Hi,
I have created a script to import a .reg file. on the workstation the .reg file and the Kace8925.bat file exist in C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\208

If i run the Kace8925.bat manually file it works fine. But if I run the script from within Kace it says it completed ok but it does not actually import the data.
Here is part of script, run as local system.

Can anyone assist with why it would not work ?

Dependencies  
Add new dependency…

On Success

  1. Run the batch file uat.bat with params . Run a batch file...
    Script Name:  
    Batch file:  

      Wait for completion
    Parameters:  



1 Comment   [ + ] Show comment
  • I find it easier to Launch a program instead of a batch file.

    Dir - SYS
    File - cmd.exe
    Parameters /C regedit /s "$(KACE_DEPENDENCY_DIR)\uat.reg" - bbroski 10 years ago
    • thanks for that, I will give that a go - KiwiJJ 10 years ago

Answers (1)

Answer Summary:
Posted by: KiwiJJ 10 years ago
Orange Senior Belt
0
Ok ... after some more playing around I changed the Windows Run As to "Logged-in user" from "Local System" and this worked

Comments:
  • if the reg poke modifies the hkcu, it does need to be run as the current user - SMal.tmcc 10 years ago
    • Yes, it was modifying the HKCU, thanks for the clarification - KiwiJJ 10 years ago

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