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
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 ?
Add new dependency…
On Success
- Run the batch file
“uat.bat” with params “”.
Run a batch
file...
Script Name: Batch file: Wait for completion Parameters:
1 Comment
[ + ] Show comment
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
KiwiJJ
10 years ago
Ok ... after some more playing around I changed the Windows Run As to "Logged-in user" from "Local System" and this worked
Dir - SYS
File - cmd.exe
Parameters /C regedit /s "$(KACE_DEPENDENCY_DIR)\uat.reg" - bbroski 10 years ago