I agree with IT-Monkey-Dave
In the security tab there is a button named "Advanced Options". The dialogue box will have a tab which is named "Owner" which you need to click on.
Select your Admin account and also make sure you check the tick box that says "Replace owner on subcontainers and objects"
This should give you the rights you need to make the amendments for everything in that directory once processed.
You will need to be logged in with an account that has Admin privileges for this to work.
Failing this I would make a copy all of the data on your D:\ drive onto separate media or even your C:\ drive. I would then format the D:\ partition and amend the permissions ready to restore the data.
Hope this helps