C
C
COBCEM_TOCKA2018-04-05 20:17:27
Windows
COBCEM_TOCKA, 2018-04-05 20:17:27

How to remove "Read Only" on all folders?

Something went wrong, and all folders are "Read Only". Nothing in the properties, no items (checkmarks) are added. Even through the console I changed the attributes (attrib -r).
Who knows how to remove this trouble?
Windows is clean, before that there were no problems with this.
I've been scratching my head for a few days, help guys.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-04-05
@COBCEM_TOCKA

In win7 I use this reg file:

Windows Registry Editor Version 5.00 

[HKEY_CLASSES_ROOT\*\shell\runas] 

@="take ownership and set full access"
"Extended"="" 

"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] 

@="take ownership and set full access"
"Extended"="" 

"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"

After application in the menu by shift + right_button there will be an item "take ownership and set full access"
If applied to a folder, it will affect all nested elements.
Well, it’s better to configure the rights normally after that, and not leave it in this form, open to everyone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question