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: Denied Access to D:\ drive

18 Oct 2009   #1

Windows 7 build 7600 64 bit
 
 
Denied Access to D:\ drive

Seems i ****** up my permission settings pretty badly thistime.

cmd is run as admin, and uac is off.
Code:
C:\>whoami
troll\hákon

C:\>net user Hákon
User name                    Hákon
Full Name                    Hákon
Comment
User's comment
Country code                 000 (System Default)
Account active               Yes
Account expires              Never

Password last set            18.8.2009 12:42:43
Password expires             Never
Password changeable          18.8.2009 12:42:43
Password required            No
User may change password     Yes

Workstations allowed         All
Logon script
User profile
Home directory
Last logon                   19.10.2009 01:39:46

Logon hours allowed          All

Local Group Memberships      *Administrators
Global Group memberships     *None
The command completed successfully.


C:\>takeown /f "D:" /r /d y
ERROR: Access is denied.

C:\>icacls "D:" /grant administrators:F /t
D:: Access is denied.
Successfully processed 0 files; Failed processing 1 files

C:\>
Denied Access to D:\ drive-clipboard01.jpg

Denied Access to D:\ drive-windowsgate.jpg



My System SpecsSystem Spec
.

18 Oct 2009   #2

XP, Seven, 2008R2
 
 

Quote   Quote: Originally Posted by Hakon View Post
Seems i ****** up my permission settings pretty badly thistime.
and how did you manage to do that?
My System SpecsSystem Spec
19 Oct 2009   #3

Windows 7 Professional x64 PL
 
 

1.First try through GUI takeownership of drive:Take Ownership of file - Vista Forums

2.If point I fail...Download PsTools PsTools extract from this psexec.exe file and place it in C:\Windows\System32.Psexec let you run processes from SYSTEM account.

for example:if you type in cmd.exe run with administrative previlliges this command:

psexec -s -i -d cmd.exe


it will run second console from SYSTEM account.

You can also run explorer from SYSTEM account

psexec -s -i -d explorer.exe

and again try GUI to take ownership of drive
you can also use your favorite file manager

psexec -s -i -d "path to favorite any good file menager"
My System SpecsSystem Spec
.


19 Oct 2009   #4

 
 

i had the same issue
i clicked with the right mouse button then navigate to the security tab, then the advanced button on the right bottom, then the owner Tab, edit and there click on your user account dont forget to check the box on the left bottom, the last step is to confirm with OK, and there you have your permissions set to your account.
My System SpecsSystem Spec
19 Oct 2009   #5

Windows 7 build 7600 64 bit
 
 

Thanks for all the replies, i took the laptop to the freindly local computershop and they had a microsoft professional look at it, and he said there is no way to revert what i did (set denie permissions to all Users that are members of the "Users" group). i can now access all subfolders of the D:\ drive (eg. D:\Software) but not the D:\ itself. here is a copypaste from the icacls D: command:

Code:
C:\>icacls D:
D: BUILTIN\Users:(OI)(CI)(N)
   BUILTIN\Users:(F)
   TROLL\Hákon:(F)
   BUILTIN\Administrators:(F)
   NT AUTHORITY\SYSTEM:(OI)(CI)(F)
   BUILTIN\Administrators:(OI)(CI)(F)
   Everyone:(OI)(CI)(F)

Successfully processed 1 files; Failed processing 0 files

C:\>
if there is any l33t h4x0r out there that can possibly help me fix this(eg. rebuild the whole ACL, delete all acl entrys for that drive)...id be thankfull, otherwise im just copying 200GB of data to my external drive and re-partitioning the drive

@ moadip:
i dont have the "Security" tab anymore

@ Flavius:
thanks for the PsExec tool, its awesome, but i cant run explorer as system(i can, but i cant open a window as system, it just runs as the current user)

@ sup3rsprt:
i....dont remember, well, i set denie permissions to all normal users...and something else
My System SpecsSystem Spec
19 Oct 2009   #6

Windows 7 x64 (SP1)
 
 

Probably best to save what you can from the drive then delete it. As well as never mess with permissions again... o.o Using DENY permissions need to be done with consideration and careful planning because DENY takes precedence over ALLOW.
My System SpecsSystem Spec
19 Oct 2009   #7

Windows 7 Professional x64 PL
 
 

Quote   Quote: Originally Posted by Hakon View Post
@ Flavius:
thanks for the PsExec tool, its awesome, but i cant run explorer as system(i can, but i cant open a window as system, it just runs as the current user)
So run from SYSTEM account any external file menager with security tabs for example Total Commander.From this kind of started program you must have access to security tabs from System account not your own.I often do this kind of things.

EDIT

Quote:
@ moadip:
i dont have the "Security" tab anymore
Navigate to key HKEY_CURRENT_USER\Software\Microsoft\windows\CurrentVersion\Policies\Explorer and make sure you don't have string Nosecuritytab <-if you have this string remove it +restart
My System SpecsSystem Spec
19 Oct 2009   #8

Windows 7 build 7600 64 bit
 
 

How do i do that to a drive in TC ? i figured it out for folders. Select a folder > File > Properties > security tab
My System SpecsSystem Spec
19 Oct 2009   #9

Windows 7 build 7600 64 bit
 
 

Nvm, i figured it out
My System SpecsSystem Spec
19 Oct 2009   #10

Windows 7 Professional x64 PL
 
 

Quote   Quote: Originally Posted by Hakon View Post
How do i do that to a drive in TC ? i figured it out for folders. Select a folder > File > Properties > security tab
For drives is bit different.Navigate to left upper corner with drive letter,rightclick>>Properties (image)


Attached Thumbnails
Denied Access to D:\ drive-tc.png  
My System SpecsSystem Spec
Reply

 Denied Access to D:\ drive





Thread Tools



Similar help and support threads for2: Denied Access to D:\ drive
Thread Forum
Access to Hard Drive is Denied System Security
Solved Shared C Drive but access denied Network & Sharing
Solved Access denied when trying to remove a CD Drive Hardware & Devices
Solved Access denied for shared drive Network & Sharing
Access denied to external dvd/cd drive Hardware & Devices
WD 1TB Drive; Is not accessible/Access Denied Hardware & Devices
Access Denied To C: Drive Network & Sharing

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 07:15 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33