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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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