Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Access denied

11 Jan 2010   #1
jaca

SEVEN ultimate 64bits
 
 
Access denied

As administrator, yet there are folders whose access is denied to me (they have a small padlock icon). Is there a way to disable this restriction?
Thanks


My System SpecsSystem Spec
.
11 Jan 2010   #2
Jonathan_King

Windows 7 Professional x64
 
 

Hello,

Try taking ownership of those folders. Take Ownership of file - Vista Forums

~Jonathan
My System SpecsSystem Spec
11 Jan 2010   #3
TimStitt

Windows 7 Ultimate 64 bit
 
 

Hi Jaca,

A few things to try here, presuming that the lock file is not another users encrypted files.

1. Open an elevated CMD prompt and navigate to the directory in question (CD "C:\DIRECTORY IN\QUESTION")
and type in the following (see pic)
takeown /F . /R /A /D Y > NUL
icacls . /grant USEROI)(CI)(F) /L /T /Q

2. Is the issue the entire drive or just a few files (I have a batch file I wrote to fix the entire drive issue)

3. See attached the takeown script, install this reg patch and then right click on the file and take ownership.

EDIT:- I just saw Jonathons link above, this has even more details for taking ownership and is worth the read


Attached Images
 
Attached Files
File Type: zip WINDOWS - TAKE_OWNERSHIP.zip (614 Bytes, 216 views)
My System SpecsSystem Spec
.

11 Jan 2010   #4
jaca

SEVEN ultimate 64bits
 
 

Worked!!
My System SpecsSystem Spec
11 Jan 2010   #5
Jonathan_King

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by jaca View Post
Worked!!
Sweet! Was it taking ownership or doing the command line thing?
My System SpecsSystem Spec
11 Jan 2010   #6
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

The command is taking ownership.
My System SpecsSystem Spec
11 Jan 2010   #7
TimStitt

Windows 7 Ultimate 64 bit
 
 

Quote   Quote: Originally Posted by SIW2 View Post
The command is taking ownership.

@Jaca - Great I'm glad it worked.

@SIW2 - Well spotted, agreed and a good clarification for anyone else reading this, they are more or less the same (with the exception of the takeown /a switch to specify the user in the CMD line version), I think Jonathon meant which method exactly did Jaca use, the one he posted or the patch I posted.

I always like to post both the reg and the command line as it's more educational and sometimes if a person is unable to install/use one method, the other works for them.

I'm guessing that you already know this , but to clarify for others - Jaca's situation is for admin access so it's not as important this time; but if we wanted to just change it for a particular user, the CMD line is easier as we just need to change the user name, where-as the reg patch requires more changes and would be of less use once changed anyway.
My System SpecsSystem Spec
12 Jan 2010   #8
jaca

SEVEN ultimate 64bits
 
 

This is a great forum. I am well pleased with the Seven, especially now, knowing a place of excellent technical support
My System SpecsSystem Spec
Reply

 Access denied




Thread Tools




Similar help and support threads
Thread Forum
CD/DVD ROM Access is Denied
Hello Everyone.. Here We Go .. I am Running Windows Server 2008 R2 .. I had Windows Server 2003 and i upgrade it to 2008 R2 .. after alot of work .. i found i have a problem with all clients .. All Clients Running on Windows 7 Ultimate 32-Bit they can't access them CD/DVD ROM .. not even by a...
Hardware & Devices
i can't access gpedit.msc ACCESS IS DENIED
i can't access gpedit.msc ACCESS IS DENIED pls help me
General Discussion
Access is denied - WHY ??
How can I open folders like Documents and Settings ? I get "Access is denied" although my account is not a limited one. I would like the freedom of opening whatever folder I want to. :(
General Discussion
Import Pictures to NAS "Access Denied" Error Though User Has Access
Hi, All. I've got an interesting situation that I'm hoping can be resolved. I built a server using FreeNAS 8.2 to store family pictures, videos, music, and Windows backups. In my home we have Windows 7 Home Premium 64bit and Windows 7 Professional 64bit. The server is setup with 3 Windows (CIFS)...
Network & Sharing
Can access Vista shares from XP but not from Windows 7 (access denied)
Hi, everyone, I'm mostly a Linux guy these days, so I'm no longer clued up about even simple Windows issues. Bear with me. :D I have one PC running Vista (home basic), one running XP (professional) and one running Windows 7 (home basic). There is a printer connected to the Vista box, which is...
Network & Sharing
"Access denied:" How to overcome denied access to a folder
I'd like to put a .cmd file in my c:\Documents and Settings\All Users\Start Menu\Programs\Startup directory, but \Documents and Settings has a lock on it and tells me "Access denied" when I click on it. Is this a job for "Take Ownership" or is there another way? The instructions for "Take...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:44.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App