Take Ownership Shortcut

Add "Take Ownership" to Context Menu of Files, Folders, and Drives in Windows


   Information
This tutorial will show you how to add Take Ownership to the context menu of all files, folders, and drives for all users in Windows.

This will allow you to be able to instantly take ownership of a file, folder (and all contents), or drive (and all contents) by changing the owner to the current user and grant the Owner_Rights SID (current owner) full access permission.

You must be an administrator to be able to add, remove, and use the "Take Ownership" context menu.

   Note
Application files (ex: EXE, CMD, MSI) will continue to have Run as administrator instead of Take Ownership in their context menu.



When you right click or press and hold on a file, folder, or drive, and click/tap on Take Ownership, you may be prompted by UAC for permission to do so first.

If a user is logged in as an administrator, then the user would just click/tap on Yes to approve and take ownership. The owner of the file, folder, or drive would be changed to the current administrator user account. Permissions would be set to allow the Owner_Rights SID (current owner) full control of the file, folder, or drive.

If a user is logged in as a standard user, then the user would need to enter a selected administrator's password to approve and take ownership. The owner of the file, folder, or drive would be changed to the selected administrator account, and not the standard user. Permissions would be set to allow the Owner_Rights SID (current owner) full control of the file, folder, or drive.



The Take Ownership context menu will not be available when you right click on the C: drive, C:\Program Files folder, C:\Program Files (x86) folder, C:\ProgramData folder, C:\Users folder, and C:\Windows folder. This was done because taking ownership of these system folders can make Windows unstable since it would also take ownership of all the folder's content at the same time.

You will still be able to use the Take Ownership context menu of files inside the folder locations above.

If you would like to have a custom location(s) of your own to not have the context menu, then please feel free to post a request in this tutorial thread. I'll be happy to post back with a custom .reg file for it.

   Warning
This context menu will only work with English Windows installations.

If you have a different language, then please post a reply with what language you have instead. I'll be happy to post back a translated version for you.


EXAMPLE: Take Ownership in Context Menu

example.jpg




Here's How:

1. Do step 2, 3, or 4 below for what you would like to do.


2. To Add "Take Ownership" to Context Menu

   Note
Application files (ex: EXE, CMD, MSI) will still have Run as administrator instead of Take Ownership in the context menu when you use this step.


A) Click/tap on the Download button below to download the file below, and go to step 5 below.

Add_Take_Ownership_to_context_menu


Download


3. To Add "Take Ownership" with Pause to Context Menu

   Note
This option pauses the command when you use the "Take Ownership" context menu to be able to see the command results. This can be handy to verify setting ownership and permissions was successful or not.

Application files (ex: EXE, CMD, MSI) will still have Run as administrator instead of Take Ownership in the context menu when you use this step.


Take_Ownership_Pause.jpg


A) Click/tap on the Download button below to download the file below, and go to step 5 below.

Add_Take_Ownership_with_Pause_to_context_menu.reg


Download


4. To Remove "Take Ownership" from Context Menu

   Note
This is the default setting, and will also restore the default Run as administrator for .exe files.


A) Click/tap on the Download button below to download the file below, and go to step 5 below.

Remove_Take_Ownership_from_context_menu.reg


Download


5. Save the .reg file to your Desktop.

6. Double click on the downloaded .reg file to merge it.

7. If prompted, click on Run, Yes (UAC), Yes, and OK to approve the merge.

8. When finished, you can delete the downloaded .reg file if you like.



That's it,
Shawn




 

Attachments

Last edited:
You're welcome. I'm happy to hear that you got it sorted. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
this seems to be broken when also using the open elevated command window tweak, it appears to not auto elevate correctly for some reason.

edit,

strange i must've been using an older version or something
 

My Computer

OS
Windows 7
CPU
Core i7 920 D0
Motherboard
Rampage II Gene
Memory
Corsair Dominator 1600
Graphics Card(s)
Geforce GTX 275
Sound Card
Auzentech Prelude
Monitor(s) Displays
BenQ G2400WD
Screen Resolution
1920x1200
Hard Drives
WD AAKS 500GB
WD 1TB
Seagate 160GB
PSU
Corsair HX620
Case
NZXT Rogue
Cooling
TRUE Copper
Keyboard
Logitech G15
Internet Speed
Anywhere from 2.5 to 3.5mb

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
i modified it some more to add the LUA shield to directories xD

elevated cmd windows im not to worried about, i can launch them from total commander just by running that elevated xD
 

My Computer

OS
Windows 7
CPU
Core i7 920 D0
Motherboard
Rampage II Gene
Memory
Corsair Dominator 1600
Graphics Card(s)
Geforce GTX 275
Sound Card
Auzentech Prelude
Monitor(s) Displays
BenQ G2400WD
Screen Resolution
1920x1200
Hard Drives
WD AAKS 500GB
WD 1TB
Seagate 160GB
PSU
Corsair HX620
Case
NZXT Rogue
Cooling
TRUE Copper
Keyboard
Logitech G15
Internet Speed
Anywhere from 2.5 to 3.5mb
Good idea. Updated downloads with to have the icon as well.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Does this replace the "Run as Administrator" option?
 

My Computer

Computer Manufacturer/Model Number
Dell XPS M1530
OS
Windows 7 Ultimate x64
CPU
Intel Core Duo T7500 @ 2.20 GHz
Memory
4 GB
Graphics Card(s)
GeForce 8400m GS
no.
 

My Computer

OS
Windows 7
CPU
Core i7 920 D0
Motherboard
Rampage II Gene
Memory
Corsair Dominator 1600
Graphics Card(s)
Geforce GTX 275
Sound Card
Auzentech Prelude
Monitor(s) Displays
BenQ G2400WD
Screen Resolution
1920x1200
Hard Drives
WD AAKS 500GB
WD 1TB
Seagate 160GB
PSU
Corsair HX620
Case
NZXT Rogue
Cooling
TRUE Copper
Keyboard
Logitech G15
Internet Speed
Anywhere from 2.5 to 3.5mb
hmm, you're right, run as admin is broken D:

but i know i had a self elevating take ownership item that worked fine with the run as admin command not so long ago.

seems to be because it replaces the run as key for exe's.

i recommend removal of take ownership over exe files?

Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\runas]

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[-HKEY_CLASSES_ROOT\Directory\shell\runas]

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

[-HKEY_CLASSES_ROOT\dllfile\shell]

[HKEY_CLASSES_ROOT\dllfile\shell\runas]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\dllfile\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
 

My Computer

OS
Windows 7
CPU
Core i7 920 D0
Motherboard
Rampage II Gene
Memory
Corsair Dominator 1600
Graphics Card(s)
Geforce GTX 275
Sound Card
Auzentech Prelude
Monitor(s) Displays
BenQ G2400WD
Screen Resolution
1920x1200
Hard Drives
WD AAKS 500GB
WD 1TB
Seagate 160GB
PSU
Corsair HX620
Case
NZXT Rogue
Cooling
TRUE Copper
Keyboard
Logitech G15
Internet Speed
Anywhere from 2.5 to 3.5mb
hmm, you're right, run as admin is broken D:

but i know i had a self elevating take ownership item that worked fine with the run as admin command not so long ago.

seems to be because it replaces the run as key for exe's.

i recommend removal of take ownership over exe files?

Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\runas]

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[-HKEY_CLASSES_ROOT\Directory\shell\runas]

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

[-HKEY_CLASSES_ROOT\dllfile\shell]

[HKEY_CLASSES_ROOT\dllfile\shell\runas]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\dllfile\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

Lol. I don't know. Just let me know when there is a new version to download that gives back the option to "Run as Administrator" :D
 

My Computer

Computer Manufacturer/Model Number
Dell XPS M1530
OS
Windows 7 Ultimate x64
CPU
Intel Core Duo T7500 @ 2.20 GHz
Memory
4 GB
Graphics Card(s)
GeForce 8400m GS
theres no need to give it back, just use the packaged uninstall/removal file and that will restore run as admin.
 

My Computer

OS
Windows 7
CPU
Core i7 920 D0
Motherboard
Rampage II Gene
Memory
Corsair Dominator 1600
Graphics Card(s)
Geforce GTX 275
Sound Card
Auzentech Prelude
Monitor(s) Displays
BenQ G2400WD
Screen Resolution
1920x1200
Hard Drives
WD AAKS 500GB
WD 1TB
Seagate 160GB
PSU
Corsair HX620
Case
NZXT Rogue
Cooling
TRUE Copper
Keyboard
Logitech G15
Internet Speed
Anywhere from 2.5 to 3.5mb
I guess what I'm trying to say, will it be fixed so that Run as Administrator and Take Ownership appear in the same menu so you have both options?
 

My Computer

Computer Manufacturer/Model Number
Dell XPS M1530
OS
Windows 7 Ultimate x64
CPU
Intel Core Duo T7500 @ 2.20 GHz
Memory
4 GB
Graphics Card(s)
GeForce 8400m GS
doesn't seem possible to keep both run as options on exe files.
 

My Computer

OS
Windows 7
CPU
Core i7 920 D0
Motherboard
Rampage II Gene
Memory
Corsair Dominator 1600
Graphics Card(s)
Geforce GTX 275
Sound Card
Auzentech Prelude
Monitor(s) Displays
BenQ G2400WD
Screen Resolution
1920x1200
Hard Drives
WD AAKS 500GB
WD 1TB
Seagate 160GB
PSU
Corsair HX620
Case
NZXT Rogue
Cooling
TRUE Copper
Keyboard
Logitech G15
Internet Speed
Anywhere from 2.5 to 3.5mb
Lol. I don't know. Just let me know when there is a new version to download that gives back the option to "Run as Administrator" :D

Okey doke. The add REG download changed to not include "Take Ownership" for EXE files to leave "Run as administrator" instead. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Hmmm... Ok. What if you just Take Ownership and run the file, will that give you the same permissions?
 

My Computer

Computer Manufacturer/Model Number
Dell XPS M1530
OS
Windows 7 Ultimate x64
CPU
Intel Core Duo T7500 @ 2.20 GHz
Memory
4 GB
Graphics Card(s)
GeForce 8400m GS
Lol. I don't know. Just let me know when there is a new version to download that gives back the option to "Run as Administrator" :D

Okey doke. The add REG download changed to not include "Take Ownership" for EXE files to leave "Run as administrator" instead. :)

So, what should I do to fix this? Uninstall current and redownload?
 

My Computer

Computer Manufacturer/Model Number
Dell XPS M1530
OS
Windows 7 Ultimate x64
CPU
Intel Core Duo T7500 @ 2.20 GHz
Memory
4 GB
Graphics Card(s)
GeForce 8400m GS
You can run the Remove reg file to undo your current one and restore "Run as administrator" for exe files, then run the Add reg file for the new version. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
You can run the Remove reg file to undo your current one and restore "Run as administrator" for exe files, then run the Add reg file for the new version. :)

Works perfectly. Thanks.
 

My Computer

Computer Manufacturer/Model Number
Dell XPS M1530
OS
Windows 7 Ultimate x64
CPU
Intel Core Duo T7500 @ 2.20 GHz
Memory
4 GB
Graphics Card(s)
GeForce 8400m GS
You're most welcome. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top