Fazer uma PerguntaFazer uma Pergunta
 

RespondidoAccess Denied

  • sexta-feira, 27 de novembro de 2009 7:00Zakukashi Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    My computer recently fried from a power surge so about a week ago I bought a new one. Since all of my Visual Studio Projects were on my old HD I decided to add that HD to the new computer. Both computers were running on Windows 7, so now everytime I try to access my .vb files or anything else in the old HD that used to be green says "Access Denied" or "you do not have the permission" I tried to somehow get a certificate exported from the old HD and I imported that certificate into my new HD's O.S, but im still having the same issue it is as if the certificate didn't do anything. I'm not familiar how windows encrypts files and I apologize if I'm posting in the wrong place. I just want to know what I can do to continue my previous work.

Respostas

  • segunda-feira, 30 de novembro de 2009 3:30Arthur_LiMSFT, ModeradorMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Hi,

     

    According to the problem description, it seems that the problem is caused by the incorrect permission or encryption.

     

    I would like to provide you two suggestions to check the issue.

     

    Suggestion 1: Take ownership of the file and change the permission

    =========================================

    1. In the "Start" menu, locate "Command Prompt". Right-click and choose "Run as Administrator". If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

     

    2. Type the following commands, then press "Enter" to execute them one by one. Please note the space before the command and its parameter.

     

    takeown /f {file location}

    cacls {file location} /G administrators:F

     

    Suggestion 2: If importing the certificate cannot work, you may connect the hard disk back to the original computer after replacing the power supply. After that you should be able to transfer the files out.

     

    Good luck!


    Arthur Li - MSFT

Todas as Respostas

  • sábado, 28 de novembro de 2009 6:40Noel Carboni Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    This is completely from memory, and I apologize in advance if some of it is sketchy...

    You're saying you can see the files are there but just can't access them?

    If so, it sounds like you need to Take Ownership of all the files on the old hard drive.  You may be logging in with the same username/password as on your old computer, but you will have created a new security ID when you set up the new one.

    Try it with one file first, to make sure you're on the right track, then do the whole drive.  I don't recall whether you can do all the files on the drive by selecting the disk in Explorer, but at the worst you'll have to do each file/folder in the root folder.

    Right-click on the file, choose Properties, then go to the Security tab to start the process.

    Once you've taken ownership, you may have to give yourself and/or various groups (e.g., Administrators, Users, etc.) permissions.

    You'll want to check the "Replace owner on subfolders and files" (not sure on the wording but that's close) box when you're doing the entire drive.

    -Noel
  • sábado, 28 de novembro de 2009 19:36Zakukashi Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Thank you for your reply but sadly the method didn't work for me. I tried the whole taking permission process and got everything going but the files still didn't open. I even used the famous "Take Ownership" from the windows context menu. I don't know what else to do every file that was part of my projects are now "green" and unable to be copied, deleted, or accessed.
  • sábado, 28 de novembro de 2009 21:57Noel Carboni Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Did you take ownership first, then assign Users or yourself Full Control permissions?

    -Noel
  • segunda-feira, 30 de novembro de 2009 3:30Arthur_LiMSFT, ModeradorMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Hi,

     

    According to the problem description, it seems that the problem is caused by the incorrect permission or encryption.

     

    I would like to provide you two suggestions to check the issue.

     

    Suggestion 1: Take ownership of the file and change the permission

    =========================================

    1. In the "Start" menu, locate "Command Prompt". Right-click and choose "Run as Administrator". If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

     

    2. Type the following commands, then press "Enter" to execute them one by one. Please note the space before the command and its parameter.

     

    takeown /f {file location}

    cacls {file location} /G administrators:F

     

    Suggestion 2: If importing the certificate cannot work, you may connect the hard disk back to the original computer after replacing the power supply. After that you should be able to transfer the files out.

     

    Good luck!


    Arthur Li - MSFT