Проблемы с разрешениями папки Temp по-прежнему возникают.
Пожалуйста, попробуйте это:
<code>
takeown /f %temp% /r /d y
icacls "%temp%" /inheritance:r
icacls "%temp%" /grant %username%:(OI)(CI)F /T /C
icacls "%temp%" /grant *S-1-5-32-544:(OI)(CI)F /T /C
icacls "%temp%" /grant SYSTEM:(OI)(CI)F /T /C
icacls "%temp%"
</code>