How would I use Takeown to take ownership of all folders on one drive?











up vote
5
down vote

favorite
6












I have a hard drive which I need to recover specific files from but all the folders in the K: drive are denying me access even though I took owner ship of the full drive I.E




C:WindowsSystem32>takeown /F K:
This granted me access to the drive and see the folders but I can not access any of the folders after that.




Is there a way in which I can use Takeown to apply ownership to every directory on the drive>










share|improve this question


























    up vote
    5
    down vote

    favorite
    6












    I have a hard drive which I need to recover specific files from but all the folders in the K: drive are denying me access even though I took owner ship of the full drive I.E




    C:WindowsSystem32>takeown /F K:
    This granted me access to the drive and see the folders but I can not access any of the folders after that.




    Is there a way in which I can use Takeown to apply ownership to every directory on the drive>










    share|improve this question
























      up vote
      5
      down vote

      favorite
      6









      up vote
      5
      down vote

      favorite
      6






      6





      I have a hard drive which I need to recover specific files from but all the folders in the K: drive are denying me access even though I took owner ship of the full drive I.E




      C:WindowsSystem32>takeown /F K:
      This granted me access to the drive and see the folders but I can not access any of the folders after that.




      Is there a way in which I can use Takeown to apply ownership to every directory on the drive>










      share|improve this question













      I have a hard drive which I need to recover specific files from but all the folders in the K: drive are denying me access even though I took owner ship of the full drive I.E




      C:WindowsSystem32>takeown /F K:
      This granted me access to the drive and see the folders but I can not access any of the folders after that.




      Is there a way in which I can use Takeown to apply ownership to every directory on the drive>







      windows-7 cmd.exe






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 19 '14 at 10:53









      ThunderToes

      25031028




      25031028






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          15
          down vote



          accepted










          Is there a way in which I can use takeown to apply ownership to every directory on the drive?



          This can be done in two different ways, using takeown or icacls.





          Take Ownership of an Object using takeown Command



          This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.



          Open an elevated command prompt (administrator).



          To grant ownership to administrators group:



          takeown /F "full path of folder or drive" /A /R /D Y




          To Take Ownership of a Folder or Drive and All Contents using icacls Command



          Open an elevated command prompt (administrator).



          To set administrators group as owner:



          icacls "full path of folder or drive" /setowner "Administrators" /T /C




          Further Reading





          • An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.


          • icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.


          • takeown - Take ownership of a file (Windows 2003/7/2008).






          share|improve this answer























          • This provides a lot more depth Thank you :)
            – ThunderToes
            Sep 19 '14 at 11:09










          • This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run psexec -i -s cmd.exe from an Administrator command prompt, then run the commands from this answer.
            – Andrew Brock
            Sep 27 at 8:15


















          up vote
          1
          down vote













          You will need to add a /R on your command to recurse throughout the subfolders and files...






          share|improve this answer





















          • Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
            – CharlesH
            Sep 19 '14 at 11:08










          • yes thank you for this I just this minute found it out haha
            – ThunderToes
            Sep 19 '14 at 11:08


















          up vote
          1
          down vote













          Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:




          C:WindowsSystem32>takeown /f K: /R




          This then gave me permission to all folder and subfolders



          If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f813878%2fhow-would-i-use-takeown-to-take-ownership-of-all-folders-on-one-drive%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            15
            down vote



            accepted










            Is there a way in which I can use takeown to apply ownership to every directory on the drive?



            This can be done in two different ways, using takeown or icacls.





            Take Ownership of an Object using takeown Command



            This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.



            Open an elevated command prompt (administrator).



            To grant ownership to administrators group:



            takeown /F "full path of folder or drive" /A /R /D Y




            To Take Ownership of a Folder or Drive and All Contents using icacls Command



            Open an elevated command prompt (administrator).



            To set administrators group as owner:



            icacls "full path of folder or drive" /setowner "Administrators" /T /C




            Further Reading





            • An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.


            • icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.


            • takeown - Take ownership of a file (Windows 2003/7/2008).






            share|improve this answer























            • This provides a lot more depth Thank you :)
              – ThunderToes
              Sep 19 '14 at 11:09










            • This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run psexec -i -s cmd.exe from an Administrator command prompt, then run the commands from this answer.
              – Andrew Brock
              Sep 27 at 8:15















            up vote
            15
            down vote



            accepted










            Is there a way in which I can use takeown to apply ownership to every directory on the drive?



            This can be done in two different ways, using takeown or icacls.





            Take Ownership of an Object using takeown Command



            This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.



            Open an elevated command prompt (administrator).



            To grant ownership to administrators group:



            takeown /F "full path of folder or drive" /A /R /D Y




            To Take Ownership of a Folder or Drive and All Contents using icacls Command



            Open an elevated command prompt (administrator).



            To set administrators group as owner:



            icacls "full path of folder or drive" /setowner "Administrators" /T /C




            Further Reading





            • An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.


            • icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.


            • takeown - Take ownership of a file (Windows 2003/7/2008).






            share|improve this answer























            • This provides a lot more depth Thank you :)
              – ThunderToes
              Sep 19 '14 at 11:09










            • This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run psexec -i -s cmd.exe from an Administrator command prompt, then run the commands from this answer.
              – Andrew Brock
              Sep 27 at 8:15













            up vote
            15
            down vote



            accepted







            up vote
            15
            down vote



            accepted






            Is there a way in which I can use takeown to apply ownership to every directory on the drive?



            This can be done in two different ways, using takeown or icacls.





            Take Ownership of an Object using takeown Command



            This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.



            Open an elevated command prompt (administrator).



            To grant ownership to administrators group:



            takeown /F "full path of folder or drive" /A /R /D Y




            To Take Ownership of a Folder or Drive and All Contents using icacls Command



            Open an elevated command prompt (administrator).



            To set administrators group as owner:



            icacls "full path of folder or drive" /setowner "Administrators" /T /C




            Further Reading





            • An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.


            • icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.


            • takeown - Take ownership of a file (Windows 2003/7/2008).






            share|improve this answer














            Is there a way in which I can use takeown to apply ownership to every directory on the drive?



            This can be done in two different ways, using takeown or icacls.





            Take Ownership of an Object using takeown Command



            This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.



            Open an elevated command prompt (administrator).



            To grant ownership to administrators group:



            takeown /F "full path of folder or drive" /A /R /D Y




            To Take Ownership of a Folder or Drive and All Contents using icacls Command



            Open an elevated command prompt (administrator).



            To set administrators group as owner:



            icacls "full path of folder or drive" /setowner "Administrators" /T /C




            Further Reading





            • An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.


            • icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.


            • takeown - Take ownership of a file (Windows 2003/7/2008).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 27 '16 at 20:20

























            answered Sep 19 '14 at 11:08









            DavidPostill

            102k25220255




            102k25220255












            • This provides a lot more depth Thank you :)
              – ThunderToes
              Sep 19 '14 at 11:09










            • This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run psexec -i -s cmd.exe from an Administrator command prompt, then run the commands from this answer.
              – Andrew Brock
              Sep 27 at 8:15


















            • This provides a lot more depth Thank you :)
              – ThunderToes
              Sep 19 '14 at 11:09










            • This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run psexec -i -s cmd.exe from an Administrator command prompt, then run the commands from this answer.
              – Andrew Brock
              Sep 27 at 8:15
















            This provides a lot more depth Thank you :)
            – ThunderToes
            Sep 19 '14 at 11:09




            This provides a lot more depth Thank you :)
            – ThunderToes
            Sep 19 '14 at 11:09












            This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run psexec -i -s cmd.exe from an Administrator command prompt, then run the commands from this answer.
            – Andrew Brock
            Sep 27 at 8:15




            This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run psexec -i -s cmd.exe from an Administrator command prompt, then run the commands from this answer.
            – Andrew Brock
            Sep 27 at 8:15












            up vote
            1
            down vote













            You will need to add a /R on your command to recurse throughout the subfolders and files...






            share|improve this answer





















            • Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
              – CharlesH
              Sep 19 '14 at 11:08










            • yes thank you for this I just this minute found it out haha
              – ThunderToes
              Sep 19 '14 at 11:08















            up vote
            1
            down vote













            You will need to add a /R on your command to recurse throughout the subfolders and files...






            share|improve this answer





















            • Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
              – CharlesH
              Sep 19 '14 at 11:08










            • yes thank you for this I just this minute found it out haha
              – ThunderToes
              Sep 19 '14 at 11:08













            up vote
            1
            down vote










            up vote
            1
            down vote









            You will need to add a /R on your command to recurse throughout the subfolders and files...






            share|improve this answer












            You will need to add a /R on your command to recurse throughout the subfolders and files...







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 19 '14 at 11:07









            CharlesH

            1,8732817




            1,8732817












            • Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
              – CharlesH
              Sep 19 '14 at 11:08










            • yes thank you for this I just this minute found it out haha
              – ThunderToes
              Sep 19 '14 at 11:08


















            • Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
              – CharlesH
              Sep 19 '14 at 11:08










            • yes thank you for this I just this minute found it out haha
              – ThunderToes
              Sep 19 '14 at 11:08
















            Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
            – CharlesH
            Sep 19 '14 at 11:08




            Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
            – CharlesH
            Sep 19 '14 at 11:08












            yes thank you for this I just this minute found it out haha
            – ThunderToes
            Sep 19 '14 at 11:08




            yes thank you for this I just this minute found it out haha
            – ThunderToes
            Sep 19 '14 at 11:08










            up vote
            1
            down vote













            Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:




            C:WindowsSystem32>takeown /f K: /R




            This then gave me permission to all folder and subfolders



            If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.






            share|improve this answer

























              up vote
              1
              down vote













              Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:




              C:WindowsSystem32>takeown /f K: /R




              This then gave me permission to all folder and subfolders



              If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.






              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:




                C:WindowsSystem32>takeown /f K: /R




                This then gave me permission to all folder and subfolders



                If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.






                share|improve this answer












                Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:




                C:WindowsSystem32>takeown /f K: /R




                This then gave me permission to all folder and subfolders



                If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 19 '14 at 11:08









                ThunderToes

                25031028




                25031028






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f813878%2fhow-would-i-use-takeown-to-take-ownership-of-all-folders-on-one-drive%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...