Need Quick help on batch File

Hi All,

I’ve batch file to perform below operation:

cmd.exe /c reg add “HKEY_CURRENT_USER\Software\Microsoft\Command Processor” /v AutoRun /t REG_SZ /d “cd /D c:\Program Files\Docker Toolbox”

When I execute this through Fixlet debugger it works well and able to perform the operation.
run “C:\Users\19639\Desktop\CommandLine.bat”
wait cmd.exe /c “C:\Users\19639\Desktop\CommandLine.bat”

However, If I use same code in Action script, Status shows successful but I couldn’t see any changes on the machine. Also, I’ve tried uploading the batch file through Windows Software Distribution Wizard but no luck.

Please advice.
Any help on this will be highly appreciated.

Can’t you just add the regkey via ActionScript?

regset64 “[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]” “Name”=“data”

Yes @AlexaVonTess,
No Luck with that, have tried.

Where are you looking at?

Remember that bes actions run under the SYSTEM user context, so any change to the user’s registry hive will be performed for the SYSTEM user.

1 Like

Hope its working now :stuck_out_tongue: