To give all permission in temp folder for every one, run command prompt with admin privilege and then run the following command.
/t means “apply change recursively”
/e means “edit existing DACL”.
You can try with the following command
C:>icacls “C:\Windows\temp” /grant mahedee:(OI)(CI)F
F= Full Control
CI= Container Inherit
OI= Object Inherit