SOLVED Access is denied

Joined
May 1, 2011
Messages
15
Reaction score
0
I recently had my computer freeze and I was unable to boot into Windows. I use Ghost for my backup and I used the Ghost Recovery Disk to go to the latest restore point. Everything worked fine. Windows now works. When I opened up Windows Explorer and looked in the "my documents" section of the libraries, I get the following message "C;\users\Bill\Documents\my pictures is not accessible - access is denied". I go to the user file and the pictures are there. What can I do to get my document library to work as it did before?
 
Joined
Apr 2, 2009
Messages
925
Reaction score
362
Save this as a .reg file, double click it, and restart. Once you've restarted, right click on the folder you can't access and take ownership.

Code:
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
 

TrainableMan

^ The World's First ^
Moderator
Joined
May 10, 2010
Messages
9,362
Reaction score
1,587
Or you can just download the take ownership script from our Freeware DB. Then, as Thrax mentioned, install it and then within Windows Explorer right-click to take ownership of the folder you cannot access.
 
Joined
Apr 2, 2009
Messages
925
Reaction score
362
The TakeOwnership script does the same thing mine does.
 

TrainableMan

^ The World's First ^
Moderator
Joined
May 10, 2010
Messages
9,362
Reaction score
1,587
I understand that, I was saying the OP could just download it if that would be easier for them.
 
Joined
May 1, 2011
Messages
15
Reaction score
0
Hooray to both of you. That took care of the problem. I chose to download the script since it was easier but the response was quick and great. I applaud you both.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top