Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #47518

What is the easiest way to edit the hosts file on Windows as admin?

From Lionel Muller <Erhohterlowe@neomailbox.com>
Newsgroups alt.comp.os.windows-10, alt.windows7.general
Subject What is the easiest way to edit the hosts file on Windows as admin?
Followup-To alt.comp.os.windows-10
Date 2017-07-11 06:56 +0000
Organization Aioe.org NNTP Server
Message-ID <ok1sqo$1llk$1@gioia.aioe.org> (permalink)

Cross-posted to 2 groups.

Followups directed to: alt.comp.os.windows-10

Show all headers | View raw


What is the quickest way to edit the hosts file on Windows as admin?

This "shortcut" method (which is almost exactly what we already used for
opening an admin command prompt) worked the very first time, but is there
an easier way to edit the hosts file?

Rightclick in any folder (e.g., the Desktop) > New > Shortcut
Type a location of "cmd" (or "cmd.exe") sans quotes
Click Next 
Type an optional "name" (e.g., "Edit the hosts file")
Click Finish

Rightclick the new Shortcut > Properties 
Change the Shortcut Target from:
C:\Windows\System32\cmd.exe
Change the Shortcut Target to:
C:\Windows\System32\cmd.exe /K "notepad C:\Windows\System32\Drivers\etc\hosts"

Optionally change the "Start in" directory from:
C:\WINDOWS\system32
Optionally change the "Start in" directory to:
C:\WINDOWS\system32\Drivers\etc\

Press the Advanced button
Check [x]Run as Administrator
Press OK

That successfully creates a cascaded menu shortcut which will edit the
hosts file as administrator.

But is there an easier way?

I will outline the methods that failed, all modeled on the methods we
successfully used to open an admin prompt.
1. hotkey (failed)
2. shortcut (worked)
3. registry (failed)
4. batch file (failed)

The answer is generally useful to everyone so it would be worth our while
to solve this problem with the best solution possible.

What is the quickest way to edit the hosts file on Windows as admin?

Back to alt.comp.os.windows-10 | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 06:56 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 07:07 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? "Auric__" <not.my.real@email.address> - 2017-07-11 07:33 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? Lucifer Morningstar <not@for.mail> - 2017-07-11 17:44 +1000
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 17:19 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? Zeezicht <zeezicht_adelin.remove@telenet.remove.be> - 2017-07-11 11:23 +0200
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 17:19 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? "s|b" <me@privacy.invalid> - 2017-07-11 13:49 +0200
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 17:19 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? slate_leeper <bycy-r0bj@spamex.com> - 2017-07-11 09:15 -0400
    Re: What is the easiest way to edit the hosts file on Windows as admin? Mike Tomlinson <mike@jasper.org.uk> - 2017-07-11 16:33 +0100
      Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 17:29 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? "Mayayana" <mayayana@invalid.nospam> - 2017-07-11 09:43 -0400
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 17:36 +0000
      Re: What is the easiest way to edit the hosts file on Windows as admin? "Mayayana" <mayayana@invalid.nospam> - 2017-07-11 18:40 -0400
        Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 23:48 +0000
          Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-12 00:00 -0500
            Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 11:49 +0000
        Re: What is the easiest way to edit the hosts file on Windows as admin? "Auric__" <not.my.real@email.address> - 2017-07-12 07:32 +0000
          Re: What is the easiest way to edit the hosts file on Windows as admin? "Mayayana" <mayayana@invalid.nospam> - 2017-07-12 08:14 -0400
            Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 12:31 +0000
            Re: What is the easiest way to edit the hosts file on Windows as admin? "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-07-12 10:55 -0400
              Re: What is the easiest way to edit the hosts file on Windows as admin? Sam Hill <sam@example.com> - 2017-07-12 15:25 +0000
                Re: What is the easiest way to edit the hosts file on Windows as admin? "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-07-12 18:41 -0400
              Re: What is the easiest way to edit the hosts file on Windows as admin? "Mayayana" <mayayana@invalid.nospam> - 2017-07-12 13:01 -0400
                Re: What is the easiest way to edit the hosts file on Windows as admin? "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-07-12 18:46 -0400
              Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 17:46 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? Big Al <BigAl@invalid.com> - 2017-07-11 10:37 -0400
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 17:19 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 17:48 +0000
    Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-11 13:38 -0500
      Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 19:11 +0000
        Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 20:41 +0000
          Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-11 17:34 -0500
            Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 23:48 +0000
              Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 23:53 +0000
              Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-11 23:58 -0500
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 11:49 +0000
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 11:58 +0000
                Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-12 13:37 -0500
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 19:00 +0000
            Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-13 22:34 -0700
              Re: What is the easiest way to edit the hosts file on Windows as admin? Paul <nospam@needed.invalid> - 2017-07-14 02:10 -0400
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-14 07:43 -0700
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-14 12:12 -0700
          Re: What is the easiest way to edit the hosts file on Windows as admin? "Mayayana" <mayayana@invalid.nospam> - 2017-07-11 20:51 -0400
            Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 11:49 +0000
        Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-11 17:27 -0500
          Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 23:48 +0000
            Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-11 23:52 -0500
              Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 11:49 +0000
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 12:02 +0000
              Re: What is the easiest way to edit the hosts file on Windows as admin? "Mayayana" <mayayana@invalid.nospam> - 2017-07-12 09:15 -0400
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 13:26 +0000
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 17:54 +0000
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 23:48 +0200
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 21:54 +0000
                Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 23:10 +0100
      Re: What is the easiest way to edit the hosts file on Windows as admin? Ken Blake <Ken@invalid.news.com> - 2017-07-11 12:38 -0700
        Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 19:49 +0000
        Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-11 17:40 -0500
          Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 23:48 +0000
            Re: What is the easiest way to edit the hosts file on Windows as admin? Char Jackson <none@none.invalid> - 2017-07-11 23:01 -0500
              Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 11:49 +0000
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 20:41 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? jetjock <jetjock@example.com> - 2017-07-11 13:56 -0500
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 19:11 +0000
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 20:41 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-11 20:59 +0000
  Re: What is the easiest way to edit the hosts file on Windows as admin? Gralber@grelberville.org - 2017-07-11 20:06 -0400
    Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 11:49 +0000
    Re: What is the easiest way to edit the hosts file on Windows as admin? Nomen Nescio <nobody@dizum.com> - 2017-07-12 20:04 +0200
      Re: What is the easiest way to edit the hosts file on Windows as admin? Lionel Muller <Erhohterlowe@neomailbox.com> - 2017-07-12 19:00 +0000

csiph-web