for win 10 ,i use this script

echo on
FOR /F %%I IN ("%0") DO SET BATDIR=%%~dpI
takeown /f "%windir%\winhlp32.exe"
icacls "%windir%\winhlp32.exe" /grant *S-1-5-32-544:F
pause
copy /y...