hosts (ホストファイル) を管理者権限で一瞬で開く方法


windows10でhostsファイルを編集したい。
win + R して、以下のコマンドを入力。

powershell -NoProfile -ExecutionPolicy unrestricted -Command "start notepad C:\Windows\System32\drivers\etc\hosts -verb runas"

たったこれだけ