New
#470
First post, want to say first of all, thanks for all y'all do. Been a lurker for a while, gleaned useful tips and info off here. Thank you.
On to my issue... I have suffered from this stupid locking of folders since Windows 10 was released. I recently found another thread in here about the issue, where a chap posted the reg addition below:
I added it to my registry, and tried to use the new context menu, but I get a windows error saying that there is no app associated...Code:Windows Registry Editor Version 5.00 ; Created by: Shawn Brink ; Windows 10 Forums ; Tutorial: Take Ownership - Add to Context Menu in Windows 10 - Windows 10 Forums [-HKEY_CLASSES_ROOT\*\shell\runas] [HKEY_CLASSES_ROOT\*\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" Position="middle" [HKEY_CLASSES_ROOT\*\shell\runas\command] @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l & pause" "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l & pause" [-HKEY_CLASSES_ROOT\Directory\shell\runas] [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" Position="middle" [HKEY_CLASSES_ROOT\Directory\shell\runas\command] @="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q & pause" "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q & pause" [-HKEY_CLASSES_ROOT\dllfile\shell\runas] [HKEY_CLASSES_ROOT\dllfile\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" Position="middle" [HKEY_CLASSES_ROOT\dllfile\shell\runas\command] @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l & pause" "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l & pause" [-HKEY_CLASSES_ROOT\Drive\shell\runas] [HKEY_CLASSES_ROOT\Drive\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" Position="middle" [HKEY_CLASSES_ROOT\Drive\shell\runas\command] @="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q & pause" "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant
Any help would be GREATLY appreciated!
Hello TCGTX, and welcome to Ten Forums.
That's an old version of the context menu.
You can use the remove option in the tutorial on the first post here to remove it, and then install the new version to see if it may work better for you.
If you still get the same error message, then you could see if downloading and merging the CMD item in Option Two of the tutorial below may help by restoring the default associations for it.
Restore Default File Type Associations in Windows 10
Ok so I downloaded the remove file, I just need to merge it as is, then restart, then add newer take ownership with pause and reboot again?
Ok now Windows tells me access is denied. But my original error is gone! lol Thank you for you super quick replies!
Edit: It worked for downloads folder, but not desktop or other folders that have Windows icons on them. I cant take ownership of the files and folders in the desktop individually.
I read in the first post about not being able to take ownership of certain folders by design, due to stability issues. But Desktop was not one of them.
Again, thank you!
@TCGTX,
Go ahead and post a screenshot showing these folders with the Windows icons on them to see if it may help ID the cause.
For now, check to see if you may have Controlled Folder Access enabled. If you do, you can temporarily disable it to do what you want.
Enable or Disable Controlled Folder Access in Windows 10 | Tutorials
Hi,
Any way to hide annoying powershell flash when taking ownership? Also is there a way to skip prompt and elevate the process by default? As i remember the older version would finish everything and exit without any annoying prompts or pauses... i wish i can replicate that behavior..