Accounts Add Change Owner to Context Menu in Windows 11


  • Staff
Accounts_banner.png

This tutorial will show you how to add Change Owner to the context menu of all files, folders, and drives for all users in Windows 10 and Windows 11.

An owner is assigned to an object when that object is created. By default, the owner is the creator of the object. No matter what permissions are set on an object, the owner of the object can always change the permissions.

The owner of an object (ex: file, folder, drive, or registry key) has the right to allow or deny access to that resource. Although members of the Administrators group and other authorized users also have the right to allow or deny access, the owner has the authority to lock out non-administrator users, and then the only way to regain access to the resource is for an administrator or a member of the Restore Operators group to take ownership of it. This makes the file or folder owner important with respect to what permissions are allowed or denied for a given resource.

Ownership can be taken or transferred in several ways. The current owner of an object can transfer ownership to another user or group. A member of the Administrators group can take ownership of an object or transfer ownership to another user or group—even if administrators are locked out of the resource according to the permissions. Any user with the "Take Ownership" permission on the object can take ownership, as can any member of the "Backup Operators" group (or anyone else with the "Restore Files And Directories" user right, for that matter).

The Change Owner context menu will allow you to quickly and easily see which user or group is the current owner of a file, folder, or drive.

The Change Owner context menu includes Take Ownership to change the owner of the file, folder, or drive to the current user account. Permissions will be set to allow this current owner (Owner_Rights SID) full control of the file, folder, or drive.

The Change Owner context menu will also allow you to instantly change the owner of a file, folder (including contents), or drive to Administrators, Everyone, SYSTEM, or TrustedInstaller on demand without changing permissions.

When you right click or press and hold on a file, folder, or drive, click/tap on Change Owner, and click/tap on either Take Ownership or Change Owner to... items, you will be prompted by UAC to approve.

The Change Owner context menu will not be available when you right click or press and hold only on the specific C: drive, C:\Program Files folder, C:\Program Files (x86) folder, C:\ProgramData folder, C:\Users folder, and C:\Windows folder. This was done by design since changing the owner of the Windows "C:" drive and these specific system folders can make Windows unstable as it would also change the owner of the folder's content at the same time. You will still be able to use the Change Owner context menu on files and folders inside these locations, and on all drives other than the C drive and FAT32 drives.


You must be signed in as an administrator to add, remove, and use the Change Owner context menu.

You do not need to be an administrator to use the See Current Owner item in the "Change Owner" context menu.

See_current_owner.png



EXAMPLE: Change Owner context menu

You will need to click/tap on Show more options first by default, then click/tap on Change Owner.


Show_more_options.png
Change_Owner_context_menu.png



Here's How:

1 Do step 2 (add), step 3 (add w/pause), or step 4 (remove) below for what you would like to do.

2 To Add "Change Owner" to Context Menu

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

Add_Change_Owner_to_context_menu.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

; For files
[HKEY_CLASSES_ROOT\*\shell\ChangeOwner]
"MUIVerb"="Change Owner"
"Icon"="imageres.dll,-88"
"SubCommands"=""


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\01Owner]
@="See Current Owner"
"Icon"="imageres.dll,-1029"

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\01Owner\command]
@="powershell -NoExit Get-ACL '%1'| Format-List -Property Owner"


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\02Owner]
@="Take Ownership"
"HasLUAShield"=""
"NeverDefault"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\02Owner\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l' -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' -Verb runAs\""


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\Administrators]
@="Change Owner to Administrators"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\Administrators\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l' -Verb runAs\""


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\Everyone]
@="Change Owner to Everyone"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\Everyone\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Everyone\" /t /c /l' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Everyone\" /t /c /l' -Verb runAs\""


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\SYSTEM]
@="Change Owner to SYSTEM"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\SYSTEM\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l' -Verb runAs\""


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\TrustedInstaller]
@="Change Owner to TrustedInstaller"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\TrustedInstaller\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l' -Verb runAs\""



; For folders
[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner]
"MUIVerb"="Change Owner"
"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)\")"
"Icon"="imageres.dll,-88"
"NoWorkingDirectory"=""
"Position"="middle"
"SubCommands"=""


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\01Owner]
@="See Current Owner"
"Icon"="imageres.dll,-1029"

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\01Owner\command]
@="powershell -NoExit Get-ACL '%1'| Format-List -Property Owner"


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\02Owner]
@="Take Ownership"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\02Owner\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" /r /d y && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" /r /d y && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q' -Verb runAs\""


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\Administrators]
@="Change Owner to Administrators"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\Administrators\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Administrators\" /t /c /l' -Verb runAs\""


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\Everyone]
@="Change Owner to Everyone"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\Everyone\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Everyone\" /t /c /l' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Everyone\" /t /c /l' -Verb runAs\""


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\SYSTEM]
@="Change Owner to SYSTEM"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\SYSTEM\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"SYSTEM\" /t /c /l' -Verb runAs\""


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\TrustedInstaller]
@="Change Owner to TrustedInstaller"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\TrustedInstaller\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /t /c /l' -Verb runAs\""



; For drives
[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner]
"MUIVerb"="Change Owner"
"AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\\")"
"Icon"="imageres.dll,-88"
"NoWorkingDirectory"=""
"Position"="middle"
"SubCommands"=""


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\01Owner]
@="See Current Owner"
"Icon"="imageres.dll,-1029"

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\01Owner\command]
@="powershell -NoExit Get-ACL '%1'| Format-List -Property Owner"


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\\\" /r /d y && icacls \"%1\\\" /grant *S-1-3-4:F /t /c"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\\\" /r /d y && icacls \"%1\\\" /grant *S-1-3-4:F /t /c"


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasAdministrators]
@="Change Owner to Administrators"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasAdministrators\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"Administrators\" /c' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"Administrators\" /c' -Verb runAs\""


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasEveryone]
@="Change Owner to Everyone"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasEveryone\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/k icacls \"%1\\\" /setowner \"Everyone\" /c' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/k icacls \"%1\\\" /setowner \"Everyone\" /c' -Verb runAs\""


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasSYSTEM]
@="Change Owner to SYSTEM"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasSYSTEM\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"SYSTEM\" /c' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"SYSTEM\" /c' -Verb runAs\""


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasTrustedInstaller]
@="Change Owner to TrustedInstaller"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasTrustedInstaller\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /c' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \"%1\\\" /setowner \"\"\"NT Service\\TrustedInstaller\"\"\" /c' -Verb runAs\""

3 To Add "Change Owner" with Pause to Context Menu

This option pauses the command when you use the "Change Owner" context menu to see the command results. This can be handy to verify if changing owner was successfully processed or not.

Change_Owner_with_pause.png


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

Add_Change_Owner_with_pause_to_context_menu.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

; For files
[HKEY_CLASSES_ROOT\*\shell\ChangeOwner]
"MUIVerb"="Change Owner"
"Icon"="imageres.dll,-88"
"SubCommands"=""


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\01Owner]
@="See Current Owner"
"Icon"="imageres.dll,-1029"

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\01Owner\command]
@="powershell -NoExit Get-ACL '%1'| Format-List -Property Owner"


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\02Owner]
@="Take Ownership"
"HasLUAShield"=""
"NeverDefault"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\02Owner\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\ChangeOwner\shell\Administrators]
@="Change Owner to Administrators"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\Administrators\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\ChangeOwner\shell\Everyone]
@="Change Owner to Everyone"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\Everyone\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Everyone\" /t /c /l & pause' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Everyone\" /t /c /l & pause' -Verb runAs\""


[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\SYSTEM]
@="Change Owner to SYSTEM"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\SYSTEM\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\ChangeOwner\shell\TrustedInstaller]
@="Change Owner to TrustedInstaller"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\*\shell\ChangeOwner\shell\TrustedInstaller\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\""



; For folders
[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner]
"MUIVerb"="Change Owner"
"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)\")"
"Icon"="imageres.dll,-88"
"NoWorkingDirectory"=""
"Position"="middle"
"SubCommands"=""


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\01Owner]
@="See Current Owner"
"Icon"="imageres.dll,-1029"

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\01Owner\command]
@="powershell -NoExit Get-ACL '%1'| Format-List -Property Owner"


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\02Owner]
@="Take Ownership"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\02Owner\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" /r /d y && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q & pause' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" /r /d y && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q & pause' -Verb runAs\""


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\Administrators]
@="Change Owner to Administrators"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\Administrators\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\ChangeOwner\shell\Everyone]
@="Change Owner to Everyone"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\Everyone\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Everyone\" /t /c /l & pause' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c icacls \\\"%1\\\" /setowner \"Everyone\" /t /c /l & pause' -Verb runAs\""


[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\SYSTEM]
@="Change Owner to SYSTEM"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\SYSTEM\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\ChangeOwner\shell\TrustedInstaller]
@="Change Owner to TrustedInstaller"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner\shell\TrustedInstaller\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\""



; For drives
[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner]
"MUIVerb"="Change Owner"
"AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\\")"
"Icon"="imageres.dll,-88"
"NoWorkingDirectory"=""
"Position"="middle"
"SubCommands"=""


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\01Owner]
@="See Current Owner"
"Icon"="imageres.dll,-1029"

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\01Owner\command]
@="powershell -NoExit Get-ACL '%1'| Format-List -Property Owner"


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\\\" /r /d y && icacls \"%1\\\" /grant *S-1-3-4:F /t /c & pause"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\\\" /r /d y && icacls \"%1\\\" /grant *S-1-3-4:F /t /c & pause"


[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasAdministrators]
@="Change Owner to Administrators"
"HasLUAShield"=""
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasAdministrators\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\runasEveryone]
@="Change Owner to Everyone"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasEveryone\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\runasSYSTEM]
@="Change Owner to SYSTEM"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasSYSTEM\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\runasTrustedInstaller]
@="Change Owner to TrustedInstaller"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner\shell\runasTrustedInstaller\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\""

4 To Remove "Change Owner" from Context Menu

This is the default setting.


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

Remove_Change_Owner_from_context_menu.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

; For files
[-HKEY_CLASSES_ROOT\*\shell\ChangeOwner]


; For folders
[-HKEY_CLASSES_ROOT\Directory\shell\ChangeOwner]


; For drives
[-HKEY_CLASSES_ROOT\Drive\shell\ChangeOwner]

5 Save the .reg file to your Desktop.

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

7 When prompted, click/tap 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 Brink


 

Attachments

  • Accounts.png
    Accounts.png
    5.9 KB · Views: 69
  • Add_Change_Owner_to_context_menu.reg
    18.9 KB · Views: 211
  • Add_Change_Owner_with_pause_to_context_menu.reg
    19.3 KB · Views: 221
  • Remove_Change_Owner_from_context_menu.reg
    784 bytes · Views: 219
Last edited:
Bit too much for me to go through right now, but does this change ownership recursively on folders and does it give full permissions?

Thanks Shawn.
Gene
 

My Computers

System One System Two

  • OS
    Windows 11 Pro x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    DIY Photoshop/Game/tinker build
    CPU
    Intel i9 1300KS
    Motherboard
    Asus ROG Maximus Z90 Dark Hero
    Memory
    64GB (2x32) G.skill Trident Z5 RGB 6400 MHZ 32-39-39
    Graphics Card(s)
    Asus ROG Strix 4070 Ti OC
    Sound Card
    Onboard Audio, Vanatoo Transparent One; Klipsch R-12SWi Sub; Creative Pebble Pro Minimilist
    Monitor(s) Displays
    Eizo CG2730, ViewSonic VP2768
    Screen Resolution
    2560 x 1440p x 2
    Hard Drives
    WDC SN850 1TB nvme, SK-Hynix 2 TB P41 nvme, Raid 0: 1TB 850 EVO + 1TB 860 EVO SSD. Sabrent USB-C DS-SC5B 5-bay docking station: 6TB WDC Black, 6TB Ironwolf Pro; 2x 2TB WDC Black
    PSU
    850W Seasonic Vertex PX-850
    Case
    Fractal Design North XL Mesh, Black Walnut
    Cooling
    EKWB 360 Nucleus Dark AIO w/Phanteks T30-120 fans, 1 Noctua NF-A14 Chromax case fan
    Keyboard
    Glorious GMMK TKL mechanical, lubed modded
    Mouse
    Logitech G305 wireless gaming
    Internet Speed
    380 Mb/s down, 12 Mb/s up
    Browser
    Firefox
    Antivirus
    Defender, Macrium Reflect 8 ;-)
  • Computer type
    Laptop
    Manufacturer/Model
    Apple 13" Macbook Pro 2020 (m1)
    CPU
    Apple M1
    Screen Resolution
    2560x1600
    Browser
    Firefox
Bit too much for me to go through right now, but does this change ownership recursively on folders and does it give full permissions?

Thanks Shawn.
Gene

Hello Gene, :-)

The change owner items will not affect permissions. Only the owner of the single file, folder, or drive.

The take ownership item will change both the owner and permissions to your account for the single file, folder, or drive.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    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
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Thanks!
 

My Computers

System One System Two

  • OS
    Windows 11 Pro x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    DIY Photoshop/Game/tinker build
    CPU
    Intel i9 1300KS
    Motherboard
    Asus ROG Maximus Z90 Dark Hero
    Memory
    64GB (2x32) G.skill Trident Z5 RGB 6400 MHZ 32-39-39
    Graphics Card(s)
    Asus ROG Strix 4070 Ti OC
    Sound Card
    Onboard Audio, Vanatoo Transparent One; Klipsch R-12SWi Sub; Creative Pebble Pro Minimilist
    Monitor(s) Displays
    Eizo CG2730, ViewSonic VP2768
    Screen Resolution
    2560 x 1440p x 2
    Hard Drives
    WDC SN850 1TB nvme, SK-Hynix 2 TB P41 nvme, Raid 0: 1TB 850 EVO + 1TB 860 EVO SSD. Sabrent USB-C DS-SC5B 5-bay docking station: 6TB WDC Black, 6TB Ironwolf Pro; 2x 2TB WDC Black
    PSU
    850W Seasonic Vertex PX-850
    Case
    Fractal Design North XL Mesh, Black Walnut
    Cooling
    EKWB 360 Nucleus Dark AIO w/Phanteks T30-120 fans, 1 Noctua NF-A14 Chromax case fan
    Keyboard
    Glorious GMMK TKL mechanical, lubed modded
    Mouse
    Logitech G305 wireless gaming
    Internet Speed
    380 Mb/s down, 12 Mb/s up
    Browser
    Firefox
    Antivirus
    Defender, Macrium Reflect 8 ;-)
  • Computer type
    Laptop
    Manufacturer/Model
    Apple 13" Macbook Pro 2020 (m1)
    CPU
    Apple M1
    Screen Resolution
    2560x1600
    Browser
    Firefox

Latest Support Threads

Latest Tutorials

Back
Top Bottom