The link below should help. (You didn't mention whether the HDs are IDE or SATA drives PLUS you didn't mention whether the second/D drive was set as a slave drive on its jumpers.. Such information would surely help if the link below doesn't get it done.);
http://www.intowindows.com/how-to-take-ownership-of-a-folderfile-in-windows-7/
Hope this helps.
Grif
I just installed the hard drive from my previous, Win xp based, computer onto my new computer that I have windows 7 on. It shows up without an issue as drive D but I can't seem to find the content that I know is on there. I understand that programs from my old drive most likely will not work but when I'm searching for files such as word documents or video files that I know are there they cannot be found. What should I do? I've searched over and over using, for example, *.doc for word documents but no luck and I sometimes get a message that I'm restricted from certain folders needing admin access. Please help my ignorance.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic