ICACLS "D:\" /reset /T (replace D: by letter of your disk)
If that does not work, you might have to take ownership first.
TAKEOWN /F D:\ /R /D Y (replace D: by letter of your disk)
If your permissions are corrupted then nothing will work but to repair the OS itself.