I've created a task to modify a registry entry via batch file but it will not modify the registry when ran with a task. Below is my batch file contents and then reg file that I want to merge or edit. If I run the batch file locally it will work, just not via task or windows action. Tried running it with localsystem account and run as specified user. Both with same results. Any recommendations?
Batch file -
regedit /s Skype_Disable.reg
reg file -
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\Office\Outlook\Addins\UCAddin.LyncAddin.1]
"LoadBehavior"=dword:00000001