can someone help me combine these two .reg into a context menu flyout?

Page 3 of 3 FirstFirst 123
  1. Kyhi's Avatar
    Posts : 3,553
    Windows 3.1 to Windows 10
       #21

    klepp0906 said:
    Well, the mea culpa. some days/time later. the finished result
    Thanks for the help gentlemen!
    You were missing a few " (quotes) and had invalid spaces
    resulting in 4 invalid lines

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership]
    "HasLUAShield"=""
    "MUIVerb"="Ownership"
    "NoWorkingDirectory"=""
    "NeverDefault"=""
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell]
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout01]
    "HasLUAShield"=""
    "MUIVerb"="Take Ownership"
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout01\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout02]
    "CommandFlags"=dword:00000020
    "HasLUAShield"=""
    "MUIVerb"="Restore to Administrators"
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout02\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout03]
    "HasLUAShield"=""
    "MUIVerb"="Restore to System"
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout03\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout04]
    "HasLUAShield"=""
    "MUIVerb"="Restore to TrustedInstaller"
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout04\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership]
    "HasLUAShield"=""
    "MUIVerb"="Ownership"
    "NoWorkingDirectory"=""
    "NeverDefault"=""
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell]
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout01]
    "HasLUAShield"=""
    "MUIVerb"="Take Ownership"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout01\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout02]
    "CommandFlags"=dword:00000020
    "HasLUAShield"=""
    "MUIVerb"="Restore to Administrators"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout02\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout03]
    "HasLUAShield"=""
    "MUIVerb"="Restore to System"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout03\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout04]
    "HasLUAShield"=""
    "MUIVerb"="Restore to TrustedInstaller"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout04\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l & pause' -Verb runAs\""
      My Computer


  2. Posts : 684
    Windows 10 x64 Pro
    Thread Starter
       #22

    Kyhi said:
    You were missing a few " (quotes) and had invalid spaces
    resulting in 4 invalid lines

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership]
    "HasLUAShield"=""
    "MUIVerb"="Ownership"
    "NoWorkingDirectory"=""
    "NeverDefault"=""
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell]
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout01]
    "HasLUAShield"=""
    "MUIVerb"="Take Ownership"
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout01\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout02]
    "CommandFlags"=dword:00000020
    "HasLUAShield"=""
    "MUIVerb"="Restore to Administrators"
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout02\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout03]
    "HasLUAShield"=""
    "MUIVerb"="Restore to System"
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout03\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout04]
    "HasLUAShield"=""
    "MUIVerb"="Restore to TrustedInstaller"
    
    [HKEY_CLASSES_ROOT\*\shell\Ownership\Shell\flyout04\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership]
    "HasLUAShield"=""
    "MUIVerb"="Ownership"
    "NoWorkingDirectory"=""
    "NeverDefault"=""
    "SubCommands"=""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell]
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout01]
    "HasLUAShield"=""
    "MUIVerb"="Take Ownership"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout01\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout02]
    "CommandFlags"=dword:00000020
    "HasLUAShield"=""
    "MUIVerb"="Restore to Administrators"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout02\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout03]
    "HasLUAShield"=""
    "MUIVerb"="Restore to System"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout03\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l & pause' -Verb runAs\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout04]
    "HasLUAShield"=""
    "MUIVerb"="Restore to TrustedInstaller"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Ownership\Shell\flyout04\command]
    @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l & pause' -Verb runAs\""
    "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l & pause' -Verb runAs\""
    Ha! thank you for that. Not sure where or when that happened as my imported reg file was working across the board, yet the one i had saved for backup, i checked and it had the errors within.

    I had several copies modified open in different notepad++ tabs scattered all over I was working from so i likely imported a good one, and saved a bad one.. or something. #shrug.

    either way, thank you for pointing that out as i probably wouldnt have caught it until waaay down the road and woulda caused me more frustration depending on my mood for the day lol.
      My Computer

  3. Kyhi's Avatar
    Posts : 3,553
    Windows 3.1 to Windows 10
       #23

    Being a WinPE user it is rather easy for me to test such things...
    As the OS is all in System Memory and Testing has no effect on Host OS...
    I simply take a shot of the Registry Before - then Merge the Registry Settings - then take a capture of the Registry After, And compare the results - thus I found the 4 invalid lines not being merged properly into Registry..
      My Computer

  4. Brink's Avatar
    Posts : 56,393
    64-bit Windows 10 Pro for Workstations build 21359
       #24

    @klepp0906,

    New tutorial below for this to hopefully help some more.

    Add Change Owner to Context Menu in Windows 10
      My Computers

  5. Paul Black's Avatar
    Posts : 12,238
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #25

    Hello @Brink,
    Brink said:
    @klepp0906,

    New tutorial below for this to hopefully help some more.

    Add Change Owner to Context Menu in Windows 10
    What are the main differences [ included / excluded ] between your REG file and the one here =>
    can someone help me combine these two .reg into a context menu flyout?

    Thanks in advance..
      My Computer

  6. Brink's Avatar
    Posts : 56,393
    64-bit Windows 10 Pro for Workstations build 21359
       #26

    Paul Black said:
    Hello @Brink,
    What are the main differences [ included / excluded ] between your REG file and the one here =>
    can someone help me combine these two .reg into a context menu flyout?

    Thanks in advance..
    Hello Paul,

    It uses the same type of commands as that one, but the one below just includes more options in the context menu.

    Add Change Owner to Context Menu in Windows 10

      My Computers

  7. Paul Black's Avatar
    Posts : 12,238
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #27

    Thanks @Brink, I appreciate the reply!
      My Computer


 
Page 3 of 3 FirstFirst 123

  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 06:21.
Find Us




Windows 10 Forums