Jump to content

Advice on Run Task


Go to solution Solved by Marcos,

Recommended Posts

Posted

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.

  • Administrators
  • Solution
Posted

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.

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

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