Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Denied in Command Prompt

Status
Not open for further replies.

jt463

IS-IT--Management
Nov 23, 2005
134
One of my associates has a bad hard drive. We purchased a new one today and have hooked up the old one as a slave. While a CHKDSK identified several bad file sectors, we are still able to view the files from the command prompt.

I am trying to copy over his files from his Documents and Settings folder, but it is saying 'Access is Denied'. I created a user that has his same user name, but we are still getting a 'Denied'.

Any ideas?

Thanks so much.
 
you created a new network account or local account with his username?

"If it isn't broke, fix it 'til it is...)
 
Install Windows on the new drive. Boot up to windows, view this drive in Explorer. Are the files visible? If so, copy them this way.

Why use DOS?
 
Thanks to both of you.

Tzvier - the new account was a local account.

captaincrunch00 - I found myself going to DOS because initially I could not view any of the files on his hard drive in Windows. I was, however, able to view all the directories in DOS.

Since I posted, I have been able to get the files to be viewable in Windows. However, the User Folder in Documents and Settings still has 'Access Denied'. Ironically, it also shows that the folder is empty.

The drive itself has 11+GB of data on it, but when I explore the files (including hidden and system files), it only adds up to 6+GB.

Something's fishy. Maybe his personal drive contains the sectors that are corrupt...
 
Thanks linney. I have disconnected the drive for now. I tried taking ownership of the entire drive and didn't drill down to the actual folder I am being restricted from - which was not smart. But, I am a bit leary that it will do any good since the folder appears to be 'empty' in Windows. I would imagine it would show that way just because I am being denied???
 
I would imagine it would show that way just because I am being denied???"

Yes, that is the usual result of not having permission to access the file. Once you take ownership or have the necessary access permissions, all will be revealed.

Another snag might be if the previous owner/user used file encryption, this is unlikely but possible, and has no easy solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top