Add Change Owner to Context Menu in Windows 10  

Page 2 of 2 FirstFirst 12

  1. Posts : 50
    10 pro
       #10

    Your explanation made a lot more sense than anything I've read elsewhere.

    "Take Ownership" still works properly when it's in the "Change Owner" flyout; I just haven't figured out how to specify the order of the items in the flyout, or how to specify where the separator should be. Do you have any info that would help?
      My Computer

  2. Brink's Avatar
    Posts : 56,201
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #11

    SpacemanSam said:
    Your explanation made a lot more sense than anything I've read elsewhere.

    "Take Ownership" still works properly when it's in the "Change Owner" flyout; I just haven't figured out how to specify the order of the items in the flyout, or how to specify where the separator should be. Do you have any info that would help?
    Go ahead and post the full registry code you are using, and I'll be happy to take a look to see what may work best on naming the keys for the order you want in the context menu.

    The separator "CommandFlags"=dword:00000020 value should go in the key where you want the separator line to show above it. You can see an example of this value in the Add_Change_Owner_to_context_menu.reg file, and compare it to the example screenshot of the context menu showing the separator line.
      My Computers


  3. Posts : 50
    10 pro
       #12

    I got it working like I want it to. Yay!!! :)

    It appears our messages got "crossed in the mail" and I missed seeing your response that had the answers I needed. My apologies.

    I'm not done with it yet. Now that I have this part working properly (and I understand how to do it) I have some more I want to add. I'll post the completed code (with comments, of course) when I'm done.
      My Computer

  4. Brink's Avatar
    Posts : 56,201
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #13

    SpacemanSam said:
    I got it working like I want it to. Yay!!! :)

    It appears our messages got "crossed in the mail" and I missed seeing your response that had the answers I needed. My apologies.

    I'm not done with it yet. Now that I have this part working properly (and I understand how to do it) I have some more I want to add. I'll post the completed code (with comments, of course) when I'm done.
    Great news.

    Please let me know if you have any questions or need help with anything.
      My Computers


  5. Posts : 369
    Win7 Pro X64, Win10 Pro x640
       #14

    Good evening Brink!

    I want to extend "Change Owner" Shift+Right Click Context Menu Tweak to include drives, but not the System Drive (C:). Is the following registry modification correct? I copied the code for folders, changed the path to HCR\Drive\Shell\etc. but kept the other verbiage the same. Does anything specific about the code need to change for drives? Thanks!

    Code:
    ; For drives
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner]
    "MUIVerb"="Change Owner"
    "AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\\")"
    "Extended"=""
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    "Position"="middle"
    "SubCommands"=""
    
    
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\Administrators]
    @="Change Owner to Administrators"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\Administrators\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"Administrators\" /c & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"Administrators\" /c & pause' -Verb runAs\""
    
    
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\Everyone]
    @="Change Owner to Everyone"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\Everyone\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/k icacls \"%1\\\" /setowner \"Everyone\" /c & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/k icacls \"%1\\\" /setowner \"Everyone\" /c & pause' -Verb runAs\""
    
    
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\SYSTEM]
    @="Change Owner to SYSTEM"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\SYSTEM\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"SYSTEM\" /c & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"SYSTEM\" /c & pause' -Verb runAs\""
    
    
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\TrustedInstaller]
    @="Change Owner to TrustedInstaller"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\TrustedInstaller\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /c & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /c & pause' -Verb runAs\""
      My Computer

  6. Brink's Avatar
    Posts : 56,201
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #15

    bamajon1974 said:
    Good evening Brink!
    I want to extend "Change Owner" Shift+Right Click Context Menu Tweak to include drives, but not the System Drive (C:). Is the following registry modification correct? I copied the code for folders, changed the path to HCR\Drive\Shell\etc. but kept the other verbiage the same. Does anything specific about the code need to change for drives? Thanks!
    Hello mate,

    No need to modify the .reg files in the tutorial. They will already be able to change the owner of any drive other than the "C:" drive.
      My Computers


  7. Posts : 369
    Win7 Pro X64, Win10 Pro x640
       #16

    Got it. I missed that part in the Reg. File. Sorry about that. Thanks!
      My Computer

  8. Brink's Avatar
    Posts : 56,201
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #17

    bamajon1974 said:
    Got it. I missed that part in the Reg. File. Sorry about that. Thanks!
      My Computers


 
Page 2 of 2 FirstFirst 12

Tutorial Categories

Add Change Owner to Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 20:45.
Find Us




Windows 10 Forums