I changed permissions of a drive but now 'drive is not accessible'

Page 1 of 5 123 ... LastLast

  1. Posts : 25
    Windows 7 Home Premium 64 bit
       #1

    I changed permissions of a drive but now 'drive is not accessible'


    I was trying to deny access of an external hard drive to other users on my PC but I have somehow managed to deny access to everyone including myself.

    I right clicked on the drive then: > Security > Advanced > Change Permissions > Edit

    My memory is a bit fuzzy what I then did, but I think I selected a drop down that would indicate everyone that wasn't an admin got selected (thinking that myself being an admin would therefore mean I would be excluded from the selection). Underneath that were two columns of radio buttons or check boxes: one column for access and the other for deny. I selected the top deny radio/check box which selected the entire column. I ok'd that and then Windows went about changing all the files/folders.

    I now get 'drive is not accessible' and 'access denied' when clicking on the drive and there is no Security tab on the properties of the drive either. As I said I am an admin on the PC.

    Is there any way I can make this drive accessible again without losing any of the data?
      My Computer


  2. Posts : 5,915
    Windows 10 Pro X64
       #2

    tomskii, welcome to the forums

    Use a system restore going to before you changed the permission.

    System Restore
      My Computer


  3. Posts : 25
    Windows 7 Home Premium 64 bit
    Thread Starter
       #3

    Thanks Dude. I've now tried that but System Restore did not complete successfully because it could not access a file. So I disabled antivirus as instructed and tried again - still didn't Restore. I then went back to an earlier restore point but this still didn't Restore. The unspecified error is (0x80070005) if that means anything...
      My Computer


  4. Posts : 6,830
    Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
       #4

    Hi tomskii

    The error 0x80070005 is an access denied error .

    See if the command below will work for you .

    Click on the button type CMD inside the Search programs and files box . Right click on CMD under Programs (1) and choose Run as Administrator. On the User Access Control window click on the Yes button . Command Prompt opens to path C:\Windows\System32>_

    Type or paste the command below

    secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
    Press <enter>

       Note
    CTRL and V will not work in a command Prompt
      My Computer


  5. Posts : 25
    Windows 7 Home Premium 64 bit
    Thread Starter
       #5

    Thanks VistaKing

    I have done what you instructed but got this error in the cmd window and the drive is still not accessible:

    An extended error has occurred.

    The task has completed with an error.
    See log %windir%\security\logs\scesrv.log for detail info.
    Below is the contents of the log file:

    -------------------------------------------
    07 May 2013 10:13:18
    ----Configuration engine was initialized successfully.----

    ----Reading Configuration Template info...


    ----Configure User Rights...
    SeImpersonatePrivilege must be assigned to administrators. This setting is adjusted.
    SeImpersonatePrivilege must be assigned to SERVICE. This setting is adjusted.
    Configure S-1-5-21-1047938238-2611085258-2283624652-1002.
    remove SeDenyBatchLogonRight.
    remove SeDenyInteractiveLogonRight.
    Configure S-1-5-19.
    Configure S-1-5-20.
    Configure S-1-5-32-544.
    Configure S-1-5-32-551.
    Configure S-1-5-32-559.
    Configure S-1-5-32-545.
    Configure S-1-1-0.
    Configure S-1-5-6.
    Configure S-1-5-21-1047938238-2611085258-2283624652-501.
    add SeDenyNetworkLogonRight.
    add SeDenyInteractiveLogonRight.
    Configure S-1-5-32-555.
    Configure S-1-5-80-0.
    Configure S-1-5-80-3139157870-2983391045-3678747466-658725712-1809340420.

    User Rights configuration was completed successfully.


    ----Configure Group Membership...
    Configure Users.
    remove TheCore\Betsy.
    remove TheCore\Mimi.

    Group Membership configuration was completed successfully.


    ----Configure 64-bit Registry Keys...
    Configure users\.default.
    Configure machine\software.
    Warning 1336: The access control list (ACL) structure is invalid.
    Error setting security on machine\software\Macrovision.

    Configuration of Registry Keys was completed with one or more errors.


    ----Configure 32-bit Registry Keys...
    Configure machine\software.
    Warning 1336: The access control list (ACL) structure is invalid.
    Error setting security on machine\software\Macrovision.

    Configuration of Registry Keys was completed with one or more errors.


    ----Configure File Security...
    Configure c:\program files\common files\speechengines\microsoft\tts.
    Warning 2: The system cannot find the file specified.
    Error setting security on c:\program files\common files\speechengines\microsoft\tts.
    Configure c:\programdata\microsoft\windows\drm.
    Configure c:\programdata\microsoft\windows\drm\cache.
    Configure c:\windows\repair\default.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\default.
    Configure c:\windows\repair\ntuser.dat.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\ntuser.dat.
    Configure c:\windows\repair\sam.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\sam.
    Configure c:\windows\repair\security.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\security.
    Configure c:\windows\repair\software.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\software.
    Configure c:\windows\repair\system.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\system.
    Configure c:\windows\system32\windows media.
    Warning 2: The system cannot find the file specified.
    Error setting security on c:\windows\system32\windows media.
    Configure c:\windows\syswow64\export.
    Warning 2: The system cannot find the file specified.
    Error setting security on c:\windows\syswow64\export.
    Configure c:\windows\syswow64\ias.
    Warning 2: The system cannot find the file specified.
    Error setting security on c:\windows\syswow64\ias.

    File Security configuration was completed successfully.


    ----Configure General Service Settings...
    Configure sysmonlog.
    Error 1060: The specified service does not exist as an installed service.
    Error opening sysmonlog.
    Configure SamSs.
    Configure ntmssvc.
    Error 1060: The specified service does not exist as an installed service.
    Error opening ntmssvc.
    Configure netddedsdm.
    Error 1060: The specified service does not exist as an installed service.
    Error opening netddedsdm.
    Configure netdde.
    Error 1060: The specified service does not exist as an installed service.
    Error opening netdde.
    Configure dmserver.
    Error 1060: The specified service does not exist as an installed service.
    Error opening dmserver.
    Configure clipsrv.
    Error 1060: The specified service does not exist as an installed service.
    Error opening clipsrv.
    Configure Browser.

    General Service configuration was completed successfully.


    ----Configure available attachment engines...

    Configuration of attachment engines was completed successfully.


    ----Configure Security Policy...
    Configure password information.
    Administrator account is disabled.
    Guest account is disabled.

    System Access configuration was completed successfully.
    LSA anonymous lookup names setting : existing SD = DD;;0x800;;;AN)(A;;0xf1fff;;;BA)(A;;0x20801;;;WD)(A;;0x801;;;AN)(A;;0x1000;;;LS)(A;;0x1000;;;NS)(A;;0 x1000;;;S-1-5-17).
    Configure LSA anonymous lookup setting.
    Configure machine\software\microsoft\windows nt\currentversion\setup\recoveryconsole\securitylevel.
    Configure machine\software\microsoft\windows nt\currentversion\setup\recoveryconsole\setcommand.
    Configure machine\software\microsoft\windows nt\currentversion\winlogon\scremoveoption.
    Configure machine\software\microsoft\windows\currentversion\policies\system\dontdisplaylastusername.
    Configure machine\software\microsoft\windows\currentversion\policies\system\legalnoticecaption.
    Configure machine\software\microsoft\windows\currentversion\policies\system\legalnoticetext.
    Configure machine\software\microsoft\windows\currentversion\policies\system\scforceoption.
    Configure machine\software\microsoft\windows\currentversion\policies\system\shutdownwithoutlogon.
    Configure machine\software\microsoft\windows\currentversion\policies\system\undockwithoutlogon.
    Configure machine\software\policies\microsoft\windows\safer\codeidentifiers\authenticodeenabled.
    Configure machine\system\currentcontrolset\control\lsa\auditbaseobjects.
    Configure machine\system\currentcontrolset\control\lsa\crashonauditfail.
    Configure machine\system\currentcontrolset\control\lsa\disabledomaincreds.
    Configure machine\system\currentcontrolset\control\lsa\everyoneincludesanonymous.
    Configure machine\system\currentcontrolset\control\lsa\fipsalgorithmpolicy\enabled.
    Configure machine\system\currentcontrolset\control\lsa\forceguest.
    Configure machine\system\currentcontrolset\control\lsa\fullprivilegeauditing.
    Configure machine\system\currentcontrolset\control\lsa\nolmhash.
    Configure machine\system\currentcontrolset\control\lsa\restrictanonymous.
    Configure machine\system\currentcontrolset\control\lsa\restrictanonymoussam.
    Configure machine\system\currentcontrolset\control\print\providers\lanman print services\servers\addprinterdrivers.
    Configure machine\system\currentcontrolset\control\session manager\kernel\obcaseinsensitive.
    Configure machine\system\currentcontrolset\control\session manager\memory management\clearpagefileatshutdown.
    Configure machine\system\currentcontrolset\control\session manager\protectionmode.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\autodisconnect.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\enableforcedlogoff.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\enablesecuritysignature.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\requiresecuritysignature.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\restrictnullsessaccess.
    Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\enableplaintextpassword.
    Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\enablesecuritysignature.
    Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\requiresecuritysignature.
    Configure machine\system\currentcontrolset\services\ldap\ldapclientintegrity.

    Configuration of Registry Values was completed successfully.
    Configure log settings.

    Audit/Log configuration was completed successfully.


    ----Configure available attachment engines...

    Configuration of attachment engines was completed successfully.


    ----Un-initialize configuration engine...
    Attached Thumbnails Attached Thumbnails I changed permissions of a drive but now 'drive is not accessible'-cmd.png  
      My Computer


  6. Posts : 6,830
    Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
       #6

    Did you run this command under a Guest account ? I also see you didn't run the command inside an elevated command prompt .
      My Computer


  7. Posts : 25
    Windows 7 Home Premium 64 bit
    Thread Starter
       #7

    Hi VistaKing

    No I ran it under my account. I've just done it again using the instructions on this forum on how to run an elevated command prompt and I'm still getting an error.

    I changed permissions of a drive but now 'drive is not accessible'-cmd2.png

    This is the log:

    -------------------------------------------
    07 May 2013 10:37:06
    ----Configuration engine was initialized successfully.----

    ----Reading Configuration Template info...


    ----Configure User Rights...
    SeImpersonatePrivilege must be assigned to administrators. This setting is adjusted.
    SeImpersonatePrivilege must be assigned to SERVICE. This setting is adjusted.
    Configure S-1-5-19.
    Configure S-1-5-20.
    Configure S-1-5-32-544.
    Configure S-1-5-32-551.
    Configure S-1-5-32-559.
    Configure S-1-5-32-545.
    Configure S-1-1-0.
    Configure S-1-5-6.
    Configure S-1-5-21-1047938238-2611085258-2283624652-501.
    Configure S-1-5-32-555.
    Configure S-1-5-80-0.
    Configure S-1-5-80-3139157870-2983391045-3678747466-658725712-1809340420.

    User Rights configuration was completed successfully.


    ----Configure Group Membership...
    Configure Users.

    Group Membership configuration was completed successfully.


    ----Configure 64-bit Registry Keys...
    Configure users\.default.
    Configure machine\software.
    Warning 1336: The access control list (ACL) structure is invalid.
    Error setting security on machine\software\Macrovision.

    Configuration of Registry Keys was completed with one or more errors.


    ----Configure 32-bit Registry Keys...
    Configure machine\software.
    Warning 1336: The access control list (ACL) structure is invalid.
    Error setting security on machine\software\Macrovision.

    Configuration of Registry Keys was completed with one or more errors.


    ----Configure File Security...
    Configure c:\program files\common files\speechengines\microsoft\tts.
    Warning 2: The system cannot find the file specified.
    Error setting security on c:\program files\common files\speechengines\microsoft\tts.
    Configure c:\programdata\microsoft\windows\drm.
    Configure c:\programdata\microsoft\windows\drm\cache.
    Configure c:\windows\repair\default.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\default.
    Configure c:\windows\repair\ntuser.dat.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\ntuser.dat.
    Configure c:\windows\repair\sam.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\sam.
    Configure c:\windows\repair\security.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\security.
    Configure c:\windows\repair\software.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\software.
    Configure c:\windows\repair\system.
    Warning 3: The system cannot find the path specified.
    Error setting security on c:\windows\repair\system.
    Configure c:\windows\system32\windows media.
    Warning 2: The system cannot find the file specified.
    Error setting security on c:\windows\system32\windows media.
    Configure c:\windows\syswow64\export.
    Warning 2: The system cannot find the file specified.
    Error setting security on c:\windows\syswow64\export.
    Configure c:\windows\syswow64\ias.
    Warning 2: The system cannot find the file specified.
    Error setting security on c:\windows\syswow64\ias.

    File Security configuration was completed successfully.


    ----Configure General Service Settings...
    Configure sysmonlog.
    Error 1060: The specified service does not exist as an installed service.
    Error opening sysmonlog.
    Configure SamSs.
    Configure ntmssvc.
    Error 1060: The specified service does not exist as an installed service.
    Error opening ntmssvc.
    Configure netddedsdm.
    Error 1060: The specified service does not exist as an installed service.
    Error opening netddedsdm.
    Configure netdde.
    Error 1060: The specified service does not exist as an installed service.
    Error opening netdde.
    Configure dmserver.
    Error 1060: The specified service does not exist as an installed service.
    Error opening dmserver.
    Configure clipsrv.
    Error 1060: The specified service does not exist as an installed service.
    Error opening clipsrv.
    Configure Browser.

    General Service configuration was completed successfully.


    ----Configure available attachment engines...

    Configuration of attachment engines was completed successfully.


    ----Configure Security Policy...
    Configure password information.
    Administrator account is disabled.
    Guest account is disabled.

    System Access configuration was completed successfully.
    LSA anonymous lookup names setting : existing SD = DD;;0x800;;;AN)(A;;0xf1fff;;;BA)(A;;0x20801;;;WD)(A;;0x801;;;AN)(A;;0x1000;;;LS)(A;;0x1000;;;NS)(A;;0 x1000;;;S-1-5-17).
    Configure LSA anonymous lookup setting.
    Configure machine\software\microsoft\windows nt\currentversion\setup\recoveryconsole\securitylevel.
    Configure machine\software\microsoft\windows nt\currentversion\setup\recoveryconsole\setcommand.
    Configure machine\software\microsoft\windows nt\currentversion\winlogon\scremoveoption.
    Configure machine\software\microsoft\windows\currentversion\policies\system\dontdisplaylastusername.
    Configure machine\software\microsoft\windows\currentversion\policies\system\legalnoticecaption.
    Configure machine\software\microsoft\windows\currentversion\policies\system\legalnoticetext.
    Configure machine\software\microsoft\windows\currentversion\policies\system\scforceoption.
    Configure machine\software\microsoft\windows\currentversion\policies\system\shutdownwithoutlogon.
    Configure machine\software\microsoft\windows\currentversion\policies\system\undockwithoutlogon.
    Configure machine\software\policies\microsoft\windows\safer\codeidentifiers\authenticodeenabled.
    Configure machine\system\currentcontrolset\control\lsa\auditbaseobjects.
    Configure machine\system\currentcontrolset\control\lsa\crashonauditfail.
    Configure machine\system\currentcontrolset\control\lsa\disabledomaincreds.
    Configure machine\system\currentcontrolset\control\lsa\everyoneincludesanonymous.
    Configure machine\system\currentcontrolset\control\lsa\fipsalgorithmpolicy\enabled.
    Configure machine\system\currentcontrolset\control\lsa\forceguest.
    Configure machine\system\currentcontrolset\control\lsa\fullprivilegeauditing.
    Configure machine\system\currentcontrolset\control\lsa\nolmhash.
    Configure machine\system\currentcontrolset\control\lsa\restrictanonymous.
    Configure machine\system\currentcontrolset\control\lsa\restrictanonymoussam.
    Configure machine\system\currentcontrolset\control\print\providers\lanman print services\servers\addprinterdrivers.
    Configure machine\system\currentcontrolset\control\session manager\kernel\obcaseinsensitive.
    Configure machine\system\currentcontrolset\control\session manager\memory management\clearpagefileatshutdown.
    Configure machine\system\currentcontrolset\control\session manager\protectionmode.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\autodisconnect.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\enableforcedlogoff.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\enablesecuritysignature.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\requiresecuritysignature.
    Configure machine\system\currentcontrolset\services\lanmanserver\parameters\restrictnullsessaccess.
    Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\enableplaintextpassword.
    Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\enablesecuritysignature.
    Configure machine\system\currentcontrolset\services\lanmanworkstation\parameters\requiresecuritysignature.
    Configure machine\system\currentcontrolset\services\ldap\ldapclientintegrity.

    Configuration of Registry Values was completed successfully.
    Configure log settings.

    Audit/Log configuration was completed successfully.


    ----Configure available attachment engines...

    Configuration of attachment engines was completed successfully.


    ----Un-initialize configuration engine...
    Am I still doing something wrong?
      My Computer


  8. Posts : 6,830
    Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
       #8

    Are you trying to access the files inside the C:\ drive ?
      My Computer


  9. Posts : 25
    Windows 7 Home Premium 64 bit
    Thread Starter
       #9

    The drive that I changed the permissions to and can't access is the D drive.
      My Computer


  10. Posts : 6,830
    Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
       #10

    Ok let's try this

    Open an elevated command prompt .

    Type the command below
    CD /D D:
    press <Enter>

    Type this command
    icacls * /T /Q /C /RESET
    press <Enter>
      My Computer


 
Page 1 of 5 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About 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 02:11.
Find Us