eclipse79 4 Posted September 13, 2023 Posted September 13, 2023 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 Marcos 5,451 Posted September 13, 2023 Administrators Solution Posted September 13, 2023 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.
Recommended Posts