Add-EditHosts.reg
Windows Registry Editor Version 5.00
; 현재 사용자(HKCU)에만 적용됩니다. 모든 사용자 전역으로 하려면 HKLM 경로로 바꾸세요.
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\EditHosts]
@="Edit Hosts"
"Icon"="C:\\Windows\\System32\\imageres.dll,105"
"HasLUAShield"=""
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\EditHosts\command]
@="powershell.exe -NoProfile -WindowStyle Hidden -Command \"Start-Process notepad.exe 'C:\\Windows\\System32\\drivers\\etc\\hosts' -Verb runAs\""
Remove-EditHosts.reg
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\EditHosts]