Subinacl Access Denied using subkeyreg












4















I have windows 7 x86, I am the only user and Administrator of my pc.
I want to be able to take ownership of the key(below) but subinacl will not allow it.




HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR



The error is: RegSetKeySecurity Error: 5 Access is denied.




I've tried to launch it with an elevated command line and it still says error 5.



Two question:
Why is it doing this?
How to take ownership of this key? I would like to use subinacl if possible. But I am open minded to other tools as long as they can be used from the command line.










share|improve this question

























  • Why do you need to take ownership of that key?

    – user3463
    Jul 14 '12 at 0:30











  • @Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.

    – TwirlMandarin
    Jul 14 '12 at 0:36













  • @AlexanderCeed, did you run subinacl from an admin command-prompt?

    – Synetech
    Jul 14 '12 at 0:50











  • @Synetech Yes. I right click on cmd.exe and select "Run as admin"

    – TwirlMandarin
    Jul 14 '12 at 1:09
















4















I have windows 7 x86, I am the only user and Administrator of my pc.
I want to be able to take ownership of the key(below) but subinacl will not allow it.




HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR



The error is: RegSetKeySecurity Error: 5 Access is denied.




I've tried to launch it with an elevated command line and it still says error 5.



Two question:
Why is it doing this?
How to take ownership of this key? I would like to use subinacl if possible. But I am open minded to other tools as long as they can be used from the command line.










share|improve this question

























  • Why do you need to take ownership of that key?

    – user3463
    Jul 14 '12 at 0:30











  • @Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.

    – TwirlMandarin
    Jul 14 '12 at 0:36













  • @AlexanderCeed, did you run subinacl from an admin command-prompt?

    – Synetech
    Jul 14 '12 at 0:50











  • @Synetech Yes. I right click on cmd.exe and select "Run as admin"

    – TwirlMandarin
    Jul 14 '12 at 1:09














4












4








4


0






I have windows 7 x86, I am the only user and Administrator of my pc.
I want to be able to take ownership of the key(below) but subinacl will not allow it.




HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR



The error is: RegSetKeySecurity Error: 5 Access is denied.




I've tried to launch it with an elevated command line and it still says error 5.



Two question:
Why is it doing this?
How to take ownership of this key? I would like to use subinacl if possible. But I am open minded to other tools as long as they can be used from the command line.










share|improve this question
















I have windows 7 x86, I am the only user and Administrator of my pc.
I want to be able to take ownership of the key(below) but subinacl will not allow it.




HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR



The error is: RegSetKeySecurity Error: 5 Access is denied.




I've tried to launch it with an elevated command line and it still says error 5.



Two question:
Why is it doing this?
How to take ownership of this key? I would like to use subinacl if possible. But I am open minded to other tools as long as they can be used from the command line.







windows-7 ownership






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 14 '12 at 2:04









HackToHell

5,80222962




5,80222962










asked Jul 13 '12 at 23:54









TwirlMandarinTwirlMandarin

1,13521425




1,13521425













  • Why do you need to take ownership of that key?

    – user3463
    Jul 14 '12 at 0:30











  • @Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.

    – TwirlMandarin
    Jul 14 '12 at 0:36













  • @AlexanderCeed, did you run subinacl from an admin command-prompt?

    – Synetech
    Jul 14 '12 at 0:50











  • @Synetech Yes. I right click on cmd.exe and select "Run as admin"

    – TwirlMandarin
    Jul 14 '12 at 1:09



















  • Why do you need to take ownership of that key?

    – user3463
    Jul 14 '12 at 0:30











  • @Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.

    – TwirlMandarin
    Jul 14 '12 at 0:36













  • @AlexanderCeed, did you run subinacl from an admin command-prompt?

    – Synetech
    Jul 14 '12 at 0:50











  • @Synetech Yes. I right click on cmd.exe and select "Run as admin"

    – TwirlMandarin
    Jul 14 '12 at 1:09

















Why do you need to take ownership of that key?

– user3463
Jul 14 '12 at 0:30





Why do you need to take ownership of that key?

– user3463
Jul 14 '12 at 0:30













@Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.

– TwirlMandarin
Jul 14 '12 at 0:36







@Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.

– TwirlMandarin
Jul 14 '12 at 0:36















@AlexanderCeed, did you run subinacl from an admin command-prompt?

– Synetech
Jul 14 '12 at 0:50





@AlexanderCeed, did you run subinacl from an admin command-prompt?

– Synetech
Jul 14 '12 at 0:50













@Synetech Yes. I right click on cmd.exe and select "Run as admin"

– TwirlMandarin
Jul 14 '12 at 1:09





@Synetech Yes. I right click on cmd.exe and select "Run as admin"

– TwirlMandarin
Jul 14 '12 at 1:09










2 Answers
2






active

oldest

votes


















0














You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).



Hmm, I could have sworn you can use the takeown command to take ownership of a registry key, but it looks like you can’t.



Instead, depending on the version of Windows you use you can use the cacls command, icacls, or xcalcs (update with a VB script), or even a third-party tool like RegDACL.



(cacls and icacls come with Windows 7)






share|improve this answer































    0














    Use the commands below with SetACL with administrative privileges:



    set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
    SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
    SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"





    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',
      autoActivateHeartbeat: false,
      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%2f448693%2fsubinacl-access-denied-using-subkeyreg%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).



      Hmm, I could have sworn you can use the takeown command to take ownership of a registry key, but it looks like you can’t.



      Instead, depending on the version of Windows you use you can use the cacls command, icacls, or xcalcs (update with a VB script), or even a third-party tool like RegDACL.



      (cacls and icacls come with Windows 7)






      share|improve this answer




























        0














        You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).



        Hmm, I could have sworn you can use the takeown command to take ownership of a registry key, but it looks like you can’t.



        Instead, depending on the version of Windows you use you can use the cacls command, icacls, or xcalcs (update with a VB script), or even a third-party tool like RegDACL.



        (cacls and icacls come with Windows 7)






        share|improve this answer


























          0












          0








          0







          You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).



          Hmm, I could have sworn you can use the takeown command to take ownership of a registry key, but it looks like you can’t.



          Instead, depending on the version of Windows you use you can use the cacls command, icacls, or xcalcs (update with a VB script), or even a third-party tool like RegDACL.



          (cacls and icacls come with Windows 7)






          share|improve this answer













          You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).



          Hmm, I could have sworn you can use the takeown command to take ownership of a registry key, but it looks like you can’t.



          Instead, depending on the version of Windows you use you can use the cacls command, icacls, or xcalcs (update with a VB script), or even a third-party tool like RegDACL.



          (cacls and icacls come with Windows 7)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 14 '12 at 2:14









          SynetechSynetech

          57k29184318




          57k29184318

























              0














              Use the commands below with SetACL with administrative privileges:



              set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
              SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
              SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"





              share|improve this answer






























                0














                Use the commands below with SetACL with administrative privileges:



                set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
                SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
                SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"





                share|improve this answer




























                  0












                  0








                  0







                  Use the commands below with SetACL with administrative privileges:



                  set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
                  SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
                  SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"





                  share|improve this answer















                  Use the commands below with SetACL with administrative privileges:



                  set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
                  SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
                  SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 23 '17 at 9:36









                  Mokubai

                  56.9k16135153




                  56.9k16135153










                  answered Nov 23 '17 at 9:08









                  BiswapriyoBiswapriyo

                  2,73031241




                  2,73031241






























                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f448693%2fsubinacl-access-denied-using-subkeyreg%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

                      Список кардиналов, возведённых папой римским Каликстом III

                      Deduzione

                      Mysql.sock missing - “Can't connect to local MySQL server through socket”