Win10添加管理员权限的操作方法。
Win10复制文件夹提示“目标文件夹访问被拒绝”怎么办?
1、打开记事本,或在桌面先新建一个文本文档打开,然后复制以下注册表代码到记事本中;
01Windows Registry Editor Version 5.00
02[-HKEY_CLASSES_ROOT\*\shell\runas]
03[HKEY_CLASSES_ROOT\*\shell\runas]
04@="获取超级管理员权限"
05"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
06"NoWorkingDirectory"=""
07[HKEY_CLASSES_ROOT\*\shell\runas\command]
08@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
09"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
10[-HKEY_CLASSES_ROOT\Directory\shell\runas]
11[HKEY_CLASSES_ROOT\Directory\shell\runas]
12@="获取超级管理员权限"
13"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
14"NoWorkingDirectory"=""
15[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
16@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
17"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
18[-HKEY_CLASSES_ROOT\dllfile\shell]
19[HKEY_CLASSES_ROOT\dllfile\shell\runas]
20@="获取超级管理员权限"
21"HasLUAShield"=""
22"NoWorkingDirectory"=""
23[HKEY_CLASSES_ROOT\dllfile\shell\runas\command]
24@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
25"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
26[-HKEY_CLASSES_ROOT\Drive\shell\runas]
27[HKEY_CLASSES_ROOT\Drive\shell\runas]
28@="获取超级管理员权限"
29"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
30"NoWorkingDirectory"=""
31[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
32@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
33"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
复制代码
Windows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT\*\shell\runas][HKEY_CLASSES_ROOT\*\shell\runas]@="获取超级管理员权限""Icon"="C:\\Windows\\System32\\imageres.dll,-78""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][HKEY_CLASSES_ROOT\Directory\shell\runas]@="获取超级管理员权限""Icon"="C:\\Windows\\System32\\imageres.dll,-78""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"[-HKEY_CLASSES_ROOT\dllfile\shell][HKEY_CLASSES_ROOT\dllfile\shell\runas]@="获取超级管理员权限""HasLUAShield"="""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\dllfile\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\Drive\shell\runas][HKEY_CLASSES_ROOT\Drive\shell\runas]@="获取超级管理员权限""Icon"="C:\\Windows\\System32\\imageres.dll,-78""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\Drive\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"