Free Republic
Browse · Search
Smoky Backroom
Topics · Post Article

Save your work before attempting this procedure, although I have used this without any problems of losing data. I can not guarantee success, but this procedure has saved me tons of Windows 10 aggravation.

Open command prompt as administrator, enter following 2 commands, substitute z:xxxxxxxx with name of your folder in which the problem exists. For example substitute z:xxxxxxx with D:\TOPFOLD as name of folder. Note spaces in command lines.

takeown /f z:xxxxxxx /r /d y

icacls z:xxxxxxx /grant administrators:F /T

The result will be all folders and files inside and below folder D:/TOPFOLD will be recursively assigned to you as logged in user, with all permissions granted. No more "Acess Denied" errors.

1 posted on 01/09/2023 4:04:27 PM PST by entropy12
[ Post Reply | Private Reply | View Replies ]


To: entropy12

You can also fix just 1 file with this procedure.
Simply use address of problem file instead of folder as shown in example. For example D:\TOPFOLD\mylist.txt


2 posted on 01/09/2023 4:16:17 PM PST by entropy12 (Food is most popular anxiety drug, exercise is the least popular.)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: entropy12

BKMK - Thanks.


3 posted on 01/09/2023 4:18:46 PM PST by granite (The heart of the wise inclines to the right, but the heart of the fool to the left.Ecclesiastes 10:2)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: entropy12

Get Windows 7. XP also works just fine.


4 posted on 01/09/2023 4:20:34 PM PST by Libloather (Why do climate change hoax deniers live in mansions on the beach?)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: entropy12

Do I assume correctly that these admin cmd lines are on the machine which I wish to access?

I had a HD crash about 2 wks ago and lost access to my D drive (W10) from my laptop (W11).

Been searching everywhere for how to regain it. Tried several work arounds, but nothing works.

If this works for me, man, are you a lifesaver.


5 posted on 01/09/2023 4:21:30 PM PST by Trot (really good word processor)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: entropy12
Easiest way to get rid of "Access Denied" errors Windows 10/11

Linux

6 posted on 01/09/2023 4:21:52 PM PST by Pollard ( >>> The Great Reset is already underway! <<<)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: entropy12

Since I am the only one on my computers, I turn off most of the stuff in the Windows UAC (User Access Control).


8 posted on 01/09/2023 4:27:43 PM PST by TomGuy
[ Post Reply | Private Reply | To 1 | View Replies ]

To: entropy12

Use your own computer, not a stranger’s... /s


12 posted on 01/09/2023 5:47:18 PM PST by SuperLuminal (Where is the next Sam Adams when we so desperatly need him)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: entropy12

The problem is that the User Access Control that has been part of every MS Windows since Vista (pardon my french) was a ham-fisted effort to give Windows the same sort of file-level access control UNIX/Linux has had since forever, but they botched it horribly and with each new release of Windows it only gets worse.

The account you’re logged in as HAS TO HAVE Administrator privileges to do this.

1. Disable User Access Control
https://www.minitool.com/news/how-to-disable-uac-windows-10-004.html

That will get most of them but Windows’ “User Access Control” is such an abomination that you might still have an occasional trouble spot. You can fix them by taking ownership of the directory the files are in.

2. Go to the website below:

https://www.tenforums.com/tutorials/3841-add-take-ownership-context-menu-windows-10-a.html

Download the file “Add_Take_Ownership_to_context_menu.reg”

Right-click on the *.reg file and choose “add to registry.” When it asks if you’re sure, click yes. It will tell you the new key has been added.

Once that’s installed, you can right-click on any directory and choose “Take ownership.” You user account will then “own” that directory. Do the same to the individual files within that directory if necessary.


22 posted on 01/09/2023 8:34:48 PM PST by Paal Gulli (The world will not be destroyed by those who do evil, but by those who watch and do nothing.)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: entropy12
"Easiest way to get rid of "Access Denied" errors Windows 10/11"

I'm afraid there is no "easy" way because User Access Control is. That. Horribly. Botched.

23 posted on 01/09/2023 8:36:09 PM PST by Paal Gulli (The world will not be destroyed by those who do evil, but by those who watch and do nothing.)
[ Post Reply | Private Reply | To 1 | View Replies ]

Free Republic
Browse · Search
Smoky Backroom
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson