How to Take Ownership of Files and Folders in Windows

Configurare noua (How To)

Situatie

If you’ve ever been denied access to a file or folder in Windows, chances are you need to take ownership of them with your user account.

If you’ve ever been denied access to a file or folder in Windows, chances are you need to take ownership of them with your user account.

Solutie

In Windows, a user that has ownership of a file or folder has implicit rights to change permissions on that object. That user is also always allowed to access the file or folder—even when other permissions seemingly contradict that access. When you create a file or folder, the user account under which you’re logged in automatically gets ownership.

You’ll typically need to take ownership of a file or folder when you need unrestricted access to it in some way — typically to modify or delete it. Maybe you’ve got files or folders that were created by a user account that has since been deleted. Maybe you’ve got a hard drive from another PC that you’re working on. Or maybe you just need access to a particular system file—like “notepad.exe”— so you can apply a hack. Whatever your reason, here’s the official way to take ownership of a file or folder. And once you’ve learned how to do it, why not make it even easier and add a “Take Ownership” command right to your context menu?

First, make sure you’re logged on with an account that has administrative privileges. By default, any administrative account can take ownership of a file or folder in Windows.

Right-click the file or folder and choose “Properties” from the context menu.

In the Properties window, switch to the “Security” tab, and then click the “Advanced” button.

In Windows 10 or Windows 11, in the “Advanced Security Settings” window, click the “Change” link next to the listed owner.

In the “Select User or Group” window, in the “Enter the object name to select” box, type your user account name, and then click the “Check Names” button. If you typed a valid name, the name should change to show the full user name path with the PC name before it. You can then click the “OK” button.

Back in the “Advanced Security Settings” window, you’ll see that your user account is now listed as the owner of the object. If it’s a folder, you’ll also see an option under the owner named “Replace owner on subcontainers and objects.” Make sure that’s selected and then click “OK.”


And back on the “Security” tab of the file’s Properties window, click the “OK” button.

You should now have full ownership of and access to your file or folder.

Tip solutie

Permanent

Voteaza

(1 din 5 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?