Add Change Owner to Context Menu in Windows 10  

Page 2 of 2 FirstFirst 12

  1. Posts : 91
    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. Posts : 69,451
    64-bit Windows 11 Pro for Workstations
    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 : 91
    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. Posts : 69,451
    64-bit Windows 11 Pro for Workstations
    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 : 522
    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. Posts : 69,451
    64-bit Windows 11 Pro for Workstations
    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 : 522
    Win7 Pro X64, Win10 Pro x640
       #16

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


  8. Posts : 69,451
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #17

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


  9. Posts : 1
    Windows 7
       #18

    Hello

    I use from first page: "Add_Change_Owner_to_context_menu.reg"

    I first ran into a problem using this great menu option:



    If a given file and/or folder name is written in Cyrillic, the "See current owner" menu displays an error:



    The folder is named: "Приказано уничтожить. Операция 'Китайская шкатулка' 2009 HD TV 1080i" - accordingly the file is also written in this way in Cyrillic: "Приказано.уничтожить.Операция.'Китайская.шкатулка'.E01.2009.HDTV.1080i.x264.AC3-RX8".

    If you have a solution to the problem when the name of the folder and/or the name of the file is written in Cyrillic - is it possible with the "See current owner" menu to show a real and correct result?
      My Computer


 

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 03:44.
Find Us




Windows 10 Forums