After installing win7, the folder has no access permission processing method

  

Now many users are starting to use the win 7 system, and some users are also installing, but there are a few problems after installation. Some users don't know how to solve it. After installing win7, the folder has no access rights. Today Xiaobian will give you a way to deal with this problem.

Please open Notepad to copy the following content

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\\*\\shell\ unas]

@="Manage 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 \\"%1\\" && icacls \\"%1\\" /grant administrators:F"

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

[HKEY_CLASSES_ROOT\\Directory\\shell\ unas]

@="Administrator Takes 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 the save type, please select all the file names for the permission. reg

Save the file as REG and find the file and open the import ok. Right click on the file or folder you want to enter to get the ownership ok You can go to 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