Folder cannot be accessed after installing win7

  

I don't know if you have any experience in reinstalling the system. Some users can't access the folder after installing win7. How can this be solved?

Please open Notepad to copy the following content

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\\*\\shell\ unas]

@="Administrator Ownership"

"NoWorkingDirectory"=" "

[HKEY_CLASSES_ROOT\\*\\shell\ unas\\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\\exefile\\shell\ unas2]

@="Administrator Ownership"

" ;NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\\exefile\\shell\ unas2\\command]

@="cmd.exe /c takeown /f \\& Quot;%1\\" && icacls \\"%1\\" /grant administrators:F"

"IsolatedCommand"="cmd.exe /c takeown /f \\" %1\\" && icacls \\"%1\\" /grant administrators:F"

[HKEY_CLASSES_ROOT\\Directory\\shell\ unas]

@="Manage Ownership "

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\\Directory\\shell\ unas\\command]

@="cmd.exe /c takeown /f \\"%1\\" /r /dy && icacls \\"%1\\" /grant administrators:F /t"

"IsolatedCommand"=" ;cmd.exe /c takeown /f \\"%1\\" /r /dy && icacls \\"%1\\" /grant administrators:F /t"

Save Save Type please select all file names for access permissions. reg

Save as REG file Find this file and open import ok On the file or folder you want to enter, right click on the administrator to get ownership ok you can enter the solution Solution 2: Run the command under CMD: takeown and cacls executable takeown /? and cacls /? View related examples of use: takeown.exe /F pathname /R /A echo y

Copyright © Windows knowledge All Rights Reserved