Run this command to navigate to the drive letter, example is D
D:
To reset all permissions, run this command
icacls * /reset /t /c /q
More info
/reset
replaces ACLs with default inherited ACLs for all matching files.
/t indicates that this operation is performed on all matching
files/directories below the directories specified in the name.
/c indicates that this operation will continue on all file errors.
Error messages will still be displayed.
/q indicates that icacls should supress success messages.
Resetting NTFS files security and permission in Windows 7