Advertisement
slyfox1186

add-take-ownership-windows-context-menu.reg

Sep 28th, 2022
847
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
REG 34.68 KB | Software | 1 0
  1. Windows Registry Editor Version 5.00
  2.  
  3. ; ADD TAKE OWNERSHIP TO THE WINDOWS EXPLORER CONTEXT MENU
  4. ; RIGHT CLICK ANY FILE AND LOCATE THE ENTRY "Take ownership". IT WILL OPEN A SUB-MENU FULL OF OPTIONS.
  5.  
  6. ; SAVE THIS FILE WITH A .reg EXTENSION AND RUN THE FILE WITH ADMIN PRIVILEGES
  7.  
  8. ; TO REMOVE THIS MENU SEE: https://pastebin.com/T70Eke6v
  9.  
  10. ; START REGISTRY COMMANDS BELOW
  11.  
  12. ; [*]
  13.  
  14. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership]
  15. "MUIVerb"="Take ownership"
  16. "Icon"="imageres.dll,77"
  17. "HasLUAShield"=""
  18. "SubCommands"=""
  19.  
  20. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell]
  21.  
  22. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\01View_Owner]
  23. @="Display current owner"
  24. "Icon"="imageres.dll,-1029"
  25.  
  26. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\01View_Owner\command]
  27. @="powershell.exe -NoP -W Normal -NoExit -C \"Get-ACL \\\"%1\\\" | Format-List -Property Owner\""
  28.  
  29. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\02Set_Administrators]
  30. @="Change to Administrators"
  31. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Self-Made-Icons\\administrator2.ico"
  32. "CommandFlags"=dword:00000020
  33.  
  34. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\02Set_Administrators\command]
  35. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  36. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  37.  
  38. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\03Set_Everyone]
  39. @="Change to Everyone"
  40. "Icon"="imageres.dll,-5356"
  41.  
  42. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\03Set_Everyone\command]
  43. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  44. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  45.  
  46. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\04Set_SYSTEM]
  47. @="Change to SYSTEM"
  48. "Icon"="imageres.dll,-107"
  49.  
  50. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\04Set_SYSTEM\command]
  51. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  52. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  53.  
  54. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\05Set_TrustedInstaller]
  55. @="Change to TrustedInstaller"
  56. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Imageres\\ico106.ico"
  57.  
  58. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\05Set_TrustedInstaller\command]
  59. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  60. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  61.  
  62. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\06Set_User]
  63. @="Change to User"
  64. "Icon"="imageres.dll,-5373"
  65.  
  66. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\06Set_User\command]
  67. @=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,6c,00,2e,00,65,\
  68.   00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,00,20,00,48,00,\
  69.   69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,53,00,74,00,61,\
  70.   00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,00,20,00,63,00,\
  71.   6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,6e,00,64,00,6f,\
  72.   00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,00,69,00,6d,00,\
  73.   69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,20,00,27,00,2f,\
  74.   00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,00,20,00,69,00,\
  75.   63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,5c,00,22,00,25,\
  76.   00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,00,6e,00,65,00,\
  77.   72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,\
  78.   00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,00,2f,00,4c,00,\
  79.   20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,20,00,32,00,20,\
  80.   00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,00,62,00,20,00,\
  81.   52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  82. "IsolatedCommand"=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,\
  83.   6c,00,2e,00,65,00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,\
  84.   00,20,00,48,00,69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,\
  85.   53,00,74,00,61,00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,\
  86.   00,20,00,63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,\
  87.   6e,00,64,00,6f,00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,\
  88.   00,69,00,6d,00,69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,\
  89.   20,00,27,00,2f,00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,\
  90.   00,20,00,69,00,63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,\
  91.   5c,00,22,00,25,00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,\
  92.   00,6e,00,65,00,72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,\
  93.   41,00,4d,00,45,00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,\
  94.   00,2f,00,4c,00,20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,\
  95.   20,00,32,00,20,00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,\
  96.   00,62,00,20,00,52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  97.  
  98. ; [DIRECTORY]
  99.  
  100. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership]
  101. "MUIVerb"="Take ownership"
  102. "AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\Users\" OR System.ItemPathDisplay:=\"C:\\ProgramData\" OR System.ItemPathDisplay:=\"C:\\Windows\" OR System.ItemPathDisplay:=\"C:\\Windows\\System32\" OR System.ItemPathDisplay:=\"C:\\Program Files\" OR System.ItemPathDisplay:=\"C:\\Program Files (x86)\")"
  103. "HasLUAShield"=""
  104. "NoWorkingDirectory"=""
  105. "Position"="Middle"
  106. "SubCommands"=""
  107. "Icon"="imageres.dll,77"
  108.  
  109. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell]
  110.  
  111. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\01View_Owner]
  112. @="Display current owner"
  113. "Icon"="imageres.dll,-1029"
  114.  
  115. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\01View_Owner\command]
  116. @="powershell.exe -NoP -W Normal -NoExit -C \"Get-ACL \\\"%1\\\" | Format-List -Property Owner\""
  117.  
  118. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\02Set_Administrators]
  119. @="Change to Administrators"
  120. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Self-Made-Icons\\administrator2.ico"
  121. "CommandFlags"=dword:00000020
  122.  
  123. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\02Set_Administrators\command]
  124. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  125. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  126.  
  127. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\03Set_Everyone]
  128. @="Change to Everyone"
  129. "Icon"="imageres.dll,-5356"
  130.  
  131. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\03Set_Everyone\command]
  132. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  133. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  134.  
  135. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\04Set_SYSTEM]
  136. @="Change to SYSTEM"
  137. "Icon"="imageres.dll,-107"
  138.  
  139. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\04Set_SYSTEM\command]
  140. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  141. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  142.  
  143. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\05Set_TrustedInstaller]
  144. @="Change to TrustedInstaller"
  145. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Imageres\\ico106.ico"
  146.  
  147. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\05Set_TrustedInstaller\command]
  148. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  149. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  150.  
  151. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\06Set_User]
  152. @="Change to User"
  153. "Icon"="imageres.dll,-5373"
  154.  
  155. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\06Set_User\command]
  156. @=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,6c,00,2e,00,65,\
  157.   00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,00,20,00,48,00,\
  158.   69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,53,00,74,00,61,\
  159.   00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,00,20,00,63,00,\
  160.   6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,6e,00,64,00,6f,\
  161.   00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,00,69,00,6d,00,\
  162.   69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,20,00,27,00,2f,\
  163.   00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,00,20,00,69,00,\
  164.   63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,5c,00,22,00,25,\
  165.   00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,00,6e,00,65,00,\
  166.   72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,\
  167.   00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,00,2f,00,4c,00,\
  168.   20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,20,00,32,00,20,\
  169.   00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,00,62,00,20,00,\
  170.   52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  171. "IsolatedCommand"=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,\
  172.   6c,00,2e,00,65,00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,\
  173.   00,20,00,48,00,69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,\
  174.   53,00,74,00,61,00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,\
  175.   00,20,00,63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,\
  176.   6e,00,64,00,6f,00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,\
  177.   00,69,00,6d,00,69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,\
  178.   20,00,27,00,2f,00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,\
  179.   00,20,00,69,00,63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,\
  180.   5c,00,22,00,25,00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,\
  181.   00,6e,00,65,00,72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,\
  182.   41,00,4d,00,45,00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,\
  183.   00,2f,00,4c,00,20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,\
  184.   20,00,32,00,20,00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,\
  185.   00,62,00,20,00,52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  186.  
  187. ; [DRIVE]
  188.  
  189. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership]
  190. "MUIVerb"="Take ownership"
  191. "NoWorkingDrive"=""
  192. "AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\\")"
  193. "HasLUAShield"=""
  194. "Position"="Middle"
  195. "Extended"=-
  196. "SubCommands"=""
  197.  
  198. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell]
  199.  
  200. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\01View_Owner]
  201. @="Display current owner"
  202. "Icon"="imageres.dll,-1029"
  203.  
  204. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\01View_Owner\command]
  205. @="powershell.exe -NoP -W Normal -NoExit -C \"Get-ACL \\\"%1\\\" | Format-List -Property Owner\""
  206.  
  207. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\02Set_Administrators]
  208. @="Change to Administrators"
  209. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Self-Made-Icons\\administrator2.ico"
  210. "CommandFlags"=dword:00000020
  211.  
  212. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\02Set_Administrators\command]
  213. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  214. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  215.  
  216. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\03Set_Everyone]
  217. @="Change to Everyone"
  218. "Icon"="imageres.dll,-5356"
  219.  
  220. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\03Set_Everyone\command]
  221. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  222. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  223.  
  224. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\04Set_SYSTEM]
  225. @="Change to SYSTEM"
  226. "Icon"="imageres.dll,-107"
  227.  
  228. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\04Set_SYSTEM\command]
  229. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  230. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  231.  
  232. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\05Set_TrustedInstaller]
  233. @="Change to TrustedInstaller"
  234. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Imageres\\ico106.ico"
  235.  
  236. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\05Set_TrustedInstaller\command]
  237. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  238. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  239.  
  240. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\06Set_User]
  241. @="Change to User"
  242. "Icon"="imageres.dll,-5373"
  243.  
  244. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\06Set_User\command]
  245. @=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,6c,00,2e,00,65,\
  246.   00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,00,20,00,48,00,\
  247.   69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,53,00,74,00,61,\
  248.   00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,00,20,00,63,00,\
  249.   6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,6e,00,64,00,6f,\
  250.   00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,00,69,00,6d,00,\
  251.   69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,20,00,27,00,2f,\
  252.   00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,00,20,00,69,00,\
  253.   63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,5c,00,22,00,25,\
  254.   00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,00,6e,00,65,00,\
  255.   72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,\
  256.   00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,00,2f,00,4c,00,\
  257.   20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,20,00,32,00,20,\
  258.   00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,00,62,00,20,00,\
  259.   52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  260. "IsolatedCommand"=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,\
  261.   6c,00,2e,00,65,00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,\
  262.   00,20,00,48,00,69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,\
  263.   53,00,74,00,61,00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,\
  264.   00,20,00,63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,\
  265.   6e,00,64,00,6f,00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,\
  266.   00,69,00,6d,00,69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,\
  267.   20,00,27,00,2f,00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,\
  268.   00,20,00,69,00,63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,\
  269.   5c,00,22,00,25,00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,\
  270.   00,6e,00,65,00,72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,\
  271.   41,00,4d,00,45,00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,\
  272.   00,2f,00,4c,00,20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,\
  273.   20,00,32,00,20,00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,\
  274.   00,62,00,20,00,52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  275.  
  276. Windows Registry Editor Version 5.00
  277.  
  278. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership]
  279. "MUIVerb"="Take ownership"
  280. "Icon"="imageres.dll,77"
  281. "HasLUAShield"=""
  282. "SubCommands"=""
  283.  
  284. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell]
  285.  
  286. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\01View_Owner]
  287. @="Display current owner"
  288. "Icon"="imageres.dll,-1029"
  289.  
  290. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\01View_Owner\command]
  291. @="powershell.exe -NoP -W Normal -NoExit -C \"Get-ACL \\\"%1\\\" | Format-List -Property Owner\""
  292.  
  293. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\02Set_Administrators]
  294. @="Change to Administrators"
  295. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Self-Made-Icons\\administrator2.ico"
  296. "CommandFlags"=dword:00000020
  297.  
  298. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\02Set_Administrators\command]
  299. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  300. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  301.  
  302. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\03Set_Everyone]
  303. @="Change to Everyone"
  304. "Icon"="imageres.dll,-5356"
  305.  
  306. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\03Set_Everyone\command]
  307. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  308. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  309.  
  310. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\04Set_SYSTEM]
  311. @="Change to SYSTEM"
  312. "Icon"="imageres.dll,-107"
  313.  
  314. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\04Set_SYSTEM\command]
  315. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  316. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  317.  
  318. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\05Set_TrustedInstaller]
  319. @="Change to TrustedInstaller"
  320. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Imageres\\ico106.ico"
  321.  
  322. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\05Set_TrustedInstaller\command]
  323. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  324. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  325.  
  326. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\06Set_User]
  327. @="Change to User"
  328. "Icon"="imageres.dll,-5373"
  329.  
  330. [HKEY_CLASSES_ROOT\*\shell\Take_Ownership\shell\06Set_User\command]
  331. @=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,6c,00,2e,00,65,\
  332.   00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,00,20,00,48,00,\
  333.   69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,53,00,74,00,61,\
  334.   00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,00,20,00,63,00,\
  335.   6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,6e,00,64,00,6f,\
  336.   00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,00,69,00,6d,00,\
  337.   69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,20,00,27,00,2f,\
  338.   00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,00,20,00,69,00,\
  339.   63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,5c,00,22,00,25,\
  340.   00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,00,6e,00,65,00,\
  341.   72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,\
  342.   00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,00,2f,00,4c,00,\
  343.   20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,20,00,32,00,20,\
  344.   00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,00,62,00,20,00,\
  345.   52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  346. "IsolatedCommand"=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,\
  347.   6c,00,2e,00,65,00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,\
  348.   00,20,00,48,00,69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,\
  349.   53,00,74,00,61,00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,\
  350.   00,20,00,63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,\
  351.   6e,00,64,00,6f,00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,\
  352.   00,69,00,6d,00,69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,\
  353.   20,00,27,00,2f,00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,\
  354.   00,20,00,69,00,63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,\
  355.   5c,00,22,00,25,00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,\
  356.   00,6e,00,65,00,72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,\
  357.   41,00,4d,00,45,00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,\
  358.   00,2f,00,4c,00,20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,\
  359.   20,00,32,00,20,00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,\
  360.   00,62,00,20,00,52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  361.  
  362. ; [DIRECTORY]
  363.  
  364. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership]
  365. "MUIVerb"="Take ownership"
  366. "AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\Users\" OR System.ItemPathDisplay:=\"C:\\ProgramData\" OR System.ItemPathDisplay:=\"C:\\Windows\" OR System.ItemPathDisplay:=\"C:\\Windows\\System32\" OR System.ItemPathDisplay:=\"C:\\Program Files\" OR System.ItemPathDisplay:=\"C:\\Program Files (x86)\")"
  367. "HasLUAShield"=""
  368. "NoWorkingDirectory"=""
  369. "Position"="Middle"
  370. "SubCommands"=""
  371. "Icon"="imageres.dll,77"
  372.  
  373. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell]
  374.  
  375. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\01View_Owner]
  376. @="Display current owner"
  377. "Icon"="imageres.dll,-1029"
  378.  
  379. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\01View_Owner\command]
  380. @="powershell.exe -NoP -W Normal -NoExit -C \"Get-ACL \\\"%1\\\" | Format-List -Property Owner\""
  381.  
  382. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\02Set_Administrators]
  383. @="Change to Administrators"
  384. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Self-Made-Icons\\administrator2.ico"
  385. "CommandFlags"=dword:00000020
  386.  
  387. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\02Set_Administrators\command]
  388. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  389. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  390.  
  391. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\03Set_Everyone]
  392. @="Change to Everyone"
  393. "Icon"="imageres.dll,-5356"
  394.  
  395. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\03Set_Everyone\command]
  396. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  397. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  398.  
  399. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\04Set_SYSTEM]
  400. @="Change to SYSTEM"
  401. "Icon"="imageres.dll,-107"
  402.  
  403. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\04Set_SYSTEM\command]
  404. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  405. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  406.  
  407. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\05Set_TrustedInstaller]
  408. @="Change to TrustedInstaller"
  409. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Imageres\\ico106.ico"
  410.  
  411. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\05Set_TrustedInstaller\command]
  412. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  413. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  414.  
  415. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\06Set_User]
  416. @="Change to User"
  417. "Icon"="imageres.dll,-5373"
  418.  
  419. [HKEY_CLASSES_ROOT\Directory\shell\Take_Ownership\shell\06Set_User\command]
  420. @=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,6c,00,2e,00,65,\
  421.   00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,00,20,00,48,00,\
  422.   69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,53,00,74,00,61,\
  423.   00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,00,20,00,63,00,\
  424.   6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,6e,00,64,00,6f,\
  425.   00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,00,69,00,6d,00,\
  426.   69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,20,00,27,00,2f,\
  427.   00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,00,20,00,69,00,\
  428.   63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,5c,00,22,00,25,\
  429.   00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,00,6e,00,65,00,\
  430.   72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,\
  431.   00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,00,2f,00,4c,00,\
  432.   20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,20,00,32,00,20,\
  433.   00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,00,62,00,20,00,\
  434.   52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  435. "IsolatedCommand"=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,\
  436.   6c,00,2e,00,65,00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,\
  437.   00,20,00,48,00,69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,\
  438.   53,00,74,00,61,00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,\
  439.   00,20,00,63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,\
  440.   6e,00,64,00,6f,00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,\
  441.   00,69,00,6d,00,69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,\
  442.   20,00,27,00,2f,00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,\
  443.   00,20,00,69,00,63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,\
  444.   5c,00,22,00,25,00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,\
  445.   00,6e,00,65,00,72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,\
  446.   41,00,4d,00,45,00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,\
  447.   00,2f,00,4c,00,20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,\
  448.   20,00,32,00,20,00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,\
  449.   00,62,00,20,00,52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  450.  
  451. ; [DRIVE]
  452.  
  453. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership]
  454. "MUIVerb"="Take ownership"
  455. "NoWorkingDrive"=""
  456. "AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\\")"
  457. "HasLUAShield"=""
  458. "Position"="Middle"
  459. "Extended"=-
  460. "SubCommands"=""
  461.  
  462. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell]
  463.  
  464. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\01View_Owner]
  465. @="Display current owner"
  466. "Icon"="imageres.dll,-1029"
  467.  
  468. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\01View_Owner\command]
  469. @="powershell.exe -NoP -W Normal -NoExit -C \"Get-ACL \\\"%1\\\" | Format-List -Property Owner\""
  470.  
  471. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\02Set_Administrators]
  472. @="Change to Administrators"
  473. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Self-Made-Icons\\administrator2.ico"
  474. "CommandFlags"=dword:00000020
  475.  
  476. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\02Set_Administrators\command]
  477. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  478. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Administrators\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  479.  
  480. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\03Set_Everyone]
  481. @="Change to Everyone"
  482. "Icon"="imageres.dll,-5356"
  483.  
  484. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\03Set_Everyone\command]
  485. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  486. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"Everyone\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  487.  
  488. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\04Set_SYSTEM]
  489. @="Change to SYSTEM"
  490. "Icon"="imageres.dll,-107"
  491.  
  492. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\04Set_SYSTEM\command]
  493. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  494. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"SYSTEM\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  495.  
  496. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\05Set_TrustedInstaller]
  497. @="Change to TrustedInstaller"
  498. "Icon"="C:\\Users\\jholl\\OneDrive\\Documents\\06-Icons-and-Shortcuts\\Imageres\\ico106.ico"
  499.  
  500. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\05Set_TrustedInstaller\command]
  501. @="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  502. "IsolatedCommand"="powershell.exe -NoP -W Hidden -C \"Start-Process cmd.exe -WindowStyle Maximized -Args '/T:0A /D /C icacls \\\"%1\\\" /setowner \\\"NT Service\\TrustedInstaller\\\" /T /C /L & TIMEOUT 2 >NUL' -Verb RunAs\""
  503.  
  504. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\06Set_User]
  505. @="Change to User"
  506. "Icon"="imageres.dll,-5373"
  507.  
  508. [HKEY_CLASSES_ROOT\Drive\shell\Take_Ownership\shell\06Set_User\command]
  509. @=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,6c,00,2e,00,65,\
  510.   00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,00,20,00,48,00,\
  511.   69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,53,00,74,00,61,\
  512.   00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,00,20,00,63,00,\
  513.   6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,6e,00,64,00,6f,\
  514.   00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,00,69,00,6d,00,\
  515.   69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,20,00,27,00,2f,\
  516.   00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,00,20,00,69,00,\
  517.   63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,5c,00,22,00,25,\
  518.   00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,00,6e,00,65,00,\
  519.   72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,\
  520.   00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,00,2f,00,4c,00,\
  521.   20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,20,00,32,00,20,\
  522.   00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,00,62,00,20,00,\
  523.   52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  524. "IsolatedCommand"=hex(2):70,00,6f,00,77,00,65,00,72,00,73,00,68,00,65,00,6c,00,\
  525.   6c,00,2e,00,65,00,78,00,65,00,20,00,2d,00,4e,00,6f,00,50,00,20,00,2d,00,57,\
  526.   00,20,00,48,00,69,00,64,00,64,00,65,00,6e,00,20,00,2d,00,43,00,20,00,22,00,\
  527.   53,00,74,00,61,00,72,00,74,00,2d,00,50,00,72,00,6f,00,63,00,65,00,73,00,73,\
  528.   00,20,00,63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2d,00,57,00,69,00,\
  529.   6e,00,64,00,6f,00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,\
  530.   00,69,00,6d,00,69,00,7a,00,65,00,64,00,20,00,2d,00,41,00,72,00,67,00,73,00,\
  531.   20,00,27,00,2f,00,54,00,3a,00,30,00,41,00,20,00,2f,00,44,00,20,00,2f,00,43,\
  532.   00,20,00,69,00,63,00,61,00,63,00,6c,00,73,00,2e,00,65,00,78,00,65,00,20,00,\
  533.   5c,00,22,00,25,00,31,00,5c,00,22,00,20,00,2f,00,73,00,65,00,74,00,6f,00,77,\
  534.   00,6e,00,65,00,72,00,20,00,5c,00,22,00,25,00,55,00,53,00,45,00,52,00,4e,00,\
  535.   41,00,4d,00,45,00,25,00,5c,00,22,00,20,00,2f,00,54,00,20,00,2f,00,43,00,20,\
  536.   00,2f,00,4c,00,20,00,26,00,20,00,54,00,49,00,4d,00,45,00,4f,00,55,00,54,00,\
  537.   20,00,32,00,20,00,3e,00,4e,00,55,00,4c,00,27,00,20,00,2d,00,56,00,65,00,72,\
  538.   00,62,00,20,00,52,00,75,00,6e,00,41,00,73,00,22,00,00,00
  539.  
  540.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement