关于修改hosts文件权限
7)YU ;
^?,/_ 3
修改hosts文件需要管理员权限,下列代码复制到记事本另存为reg文件后执行,可在文件右键添加“管理员取得所有权”选项,非常有用。 k58lmuU
\AG,dMS
Windows Registry Editor Version 5.00 '
x|B'
Vs(;al'
[HKEY_CLASSES_ROOT\*\shell\runas] i^( 0,L
@="管理员取得所有权" h$3Y,-4
"NoWorkingDirectory"="" uAJC Q)@
7~
2X/
[HKEY_CLASSES_ROOT\*\shell\runas\command] &c'unKH
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" =+u$ZZ0+]o
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" PGJ?=qXr#
OTzh=Z^r
[HKEY_CLASSES_ROOT\exefile\shell\runas2] (jXgJ" m
@="管理员取得所有权" ?tOzhrv
"NoWorkingDirectory"="" <[*s%9)'9
b`IC)xN$
[HKEY_CLASSES_ROOT\exefile\shell\runas2\command] E+_}8J .
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" nWh?zf#{
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" +`ZcYLg)#
){/y-ixH
[HKEY_CLASSES_ROOT\Directory\shell\runas] t+pI<c^]y
@="管理员取得所有权" @$aCUJ/mE
"NoWorkingDirectory"="" IV\@GM:ait
V9+7A
[HKEY_CLASSES_ROOT\Directory\shell\runas\command] OLv(
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t" ?/O+5rjA
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t" n'&WIf3
=|6IyL_N