Jump to content
Update to the Latest Version for Smooth VPN Performance ×

Modifying clients' registry via script-as-an-application does not work


Recommended Posts

Posted

I have a few external clients that I cannot send updates via other means, so what I usually do is create an application (ie BAT) in KSC for them.

And this works, without a doubt. A folder can be created for instance. But - and this is the weird part - registry changes are not being made!? Take this sample script for instance:

------------------------------------------------------------

@echo off
echo Creating directory >C:\test.log 2>&1
mkdir c:\test >>C:\test.log 2>&1

echo Adding to registry >>C:\test.log 2>&1
reg add "HKLM\SOFTWARE\_test" /v "test" /d "1" /t "REG_DWORD" /f >>C:\test.log 2>&1

echo Reg with full path >>C:\test.log 2>&1
C:\Windows\System32\reg.exe add "HKLM\SOFTWARE\_test" /v "test2" /d "1" /t "REG_DWORD" /f >>C:\test.log 2>&1

------------------------------------------------------------
-> LOG indicates every command has been successfull, but only the directory was created! Nothing in the registry!

Creating directory 
Adding to registry 
Der Vorgang wurde erfolgreich beendet.

Reg with full path 
Der Vorgang wurde erfolgreich beendet.

------------------------------------------------------------

Any idea what's going on here?

URLs:
https://support.kaspersky.com/de/ksc/15.1/install/10625#block4
https://forum.kaspersky.com/blogs/entry/43-how-to-run-bat-files-remotely-ksc-for-windows

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...