Local Community

Incorrect file permissions in Windows

Windows 10
Local 5.7.5

I have my default site folder in a different location (another drive).

When I install a new site, the file permissions are incorrect and I cannot access any of the files.
I need to run the following commands from the site root folder to fix.
This is an in elevated Windows PowerShell.

takeown /f . /r /d Y

ICACLS * /T /Q /C /RESET