Jump to content

Advice on Run Task


eclipse79
Go to solution Solved by Marcos,

Recommended Posts

Hello,

I need to remotely add a registry entry on some selected computers. The command line works fine when I run it on cmd prompt, but it does not work when I ran it from Eset Tasks. My question is: does the tasks run under administrator privileges, or under current user privileges?

The command line is: C:\Windows\System32\reg.exe add HKCU\Software\Microsoft\Office\16.0\Outlook\Options\General /v HideNewOutlookToggle /t REG_DWORD /d 00000001

The working folder is set on the task is: C:\Windows\System32

So, the entry is added only if I manually run that command on prompt.

Any ideas?
Thanks
F.

Link to comment
Share on other sites

  • Administrators
  • Solution

The task runs in the local system account so you can't use HKCU which is just a pointer to the appropriate user's key in HKU. Use a HKU path instead.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...