LocalSystem – write to registry through batch file

I have service running as LocalSystem. From this service i am running batch files.

Some batch files affect registry. I am using regedit to import reg files.

Problem is, that these registry are not changed. It looks like problem with LocalSystem account. If i run service from VS, everything works fine.

Do you have any solution for this? A tried to run batch file as other user, without success. I am also trying to change my batch file (e.g use psexec or something).

I am open to anything, which can help.


Source: windows

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.