Few websites do not open even with fast internet speed

At step 5, I am getting error. Please refer screenshot.
I have opened the cmd as admin
 

Attachments

  • 5.JPG
    5.JPG
    106.8 KB · Views: 2
As per the link of hotogeek.com given by you, I followed the option1 and option2 of opening cmd as administrator.
Still getting the same error which saving the hosts file
 
I think I'm stumped. I just cannot figure out why a command prompt started as a 'run as administrator' does not do so.

Hrrumph.

Maybe this will work....
  • Click on Start Button
  • Rt. click on 'Notepad'
  • Click "Run As Administrator"
  • Click "Continue" on the prompt
  • Navigate to C:\Windows\System32\drivers\etc\ using Notepad's 'Open' location option.
  • Select 'all files' and then choose the 'hosts' file. Make necessary changes and save!
 
Last edited:
Hmm; Runas /user:administrator cmd

cd c:
cd \windows\system32\drivers\etc

dir hosts*

bet you have hosts.txt (which is wong)
when saving; save type is ALL FILES and name is just hosts

As to notepad; select hosts; right-click ->open with ; type in notepad
 
@jobeard
Where do I type this Runas /user:administrator cmd
Typing at run, gives an error. Please refer attached screenshot
 

Attachments

  • 6.JPG
    6.JPG
    27.2 KB · Views: 2
  • 7.JPG
    7.JPG
    23.6 KB · Views: 2
It asks me for a password. Please refer screenshot.
I dont know the password. I tried the same password which I use for logging in windows. On pressing enter, the window closes.
I also noticed that, when I type the password, nothing appears on the cmd screen. The cursor keeps on blinking at the same position. Nothing gets typed
 

Attachments

  • 8.JPG
    8.JPG
    17.7 KB · Views: 2
I am not sure. Is there an account on your system which is an administrator and for which you know the password? I think you would enter :
runas /user:{accountname} cmd
and then respond to request for password by using the one for that account
 
I'm on Win/7 and the issue with Runas may be Win/10 changes ... sorry
 
Enable Administrator account
  1. get a command prompt
  2. net user administrator /active:yes

now set a password for the Administrator account
1587396487757.png
 
My account is the administrator account.
In the attachment, if you see the path, it is same as @jobeard post image.
My account is showing as administrator account
 

Attachments

  • 9.JPG
    9.JPG
    41.8 KB · Views: 3
Runas /user:{accountname} cmd
replace {accountname} with Mr.Perfect, hit enter, supply password and you should be at a command prompt with admin privilege
replace 'cmd' with 'notepad', hit enter, supply password and you should be in notepad program with admin privilege

hosts is merely text providing a lookup for some information and I would not consider it as a batch file. The lines beginning with '#" do nothing. Batch files include commands which execute as if they were entered at the command prompt (dir, cd, md, etc)
 
Hi... I did 2 things
1. Tried steps by @Cycloid Torus , I am able to open cmd and notepad. In the title bar of cmd it says "Mr.Pefect". When I try to the notepad file, I get the same error of requiring admin's permission
Also tried @jobeard solution in cmd, CD to the ETC directory shown above and just type "127.0.0.1 localhost" >hosts. ---- This gives an error "Access Denied". I had also changed the attrib to -r



2. This I happened accidentally
At the lock screen, if I take my cursor in bottom left, a pop comes which shows 2 users, Mine(Mr.Perfect) and Administrator.
I clicked on Administrator account, windows set that account up.
In this account, I tried the solutions at cmd and at notepad. Getting same errors
Please refer attachment - this is how my accounts look like now
 

Attachments

  • 1.PNG
    1.PNG
    23 KB · Views: 2
AFTER BOOTING, Your desktop should show Mr.Perfect and Administrator

Click on the latter and login on THAT ACCOUNT.

cd to \Windows\System32\drivers\etc
issue attrib -r hosts
edit hosts as already discussed and save
reissue attrib +r hosts
 
What you are seeing is Mr.Perfect while having Admin rights, is STILL known as itself. The UAC controls impact what and how this works

The way to disable Windows 10 UAC is by turning it off. However, we don't recommend this practice because it puts your environment at significant risk. Furthermore, Microsoft designed UAC to prevent unauthorized changes, and turning it off disregards Microsoft security best practices.​
 
I restarted my PC and logged in to Administrator account.
Opened CMD>>Changed attrib>>While saving the file, getting the same error.
Please refer attached screenshot.
Things to highlight in image:
1. The title bar of the cmd says "Administrator:Command Prompt". So, I am hoping that I am following your instructions correctly and running everything as administrator
2. Error message is same as earlier
3. Every time when I save the notepad file, I get the message alert from my anti-virus. (Bottom right of the screen shot). Hope this is not causing any problems.
 
The title bar of the cmd says "Administrator:Command Prompt". So, I am hoping that I am following your instructions correctly and running everything as administrator
Bravo -- correct user-id & login :)

Before changing the R/O:
C:\Windows\System32\drivers\etc>attrib hosts*
A R C:\Windows\System32\drivers\etc\hosts
A R C:\Windows\System32\drivers\etc\hosts-0
A R C:\Windows\System32\drivers\etc\hosts.00
A R C:\Windows\System32\drivers\etc\hosts.20200116-120718.backup
A R C:\Windows\System32\drivers\etc\hosts.20200116-121548.backup
A R C:\Windows\System32\drivers\etc\hosts.jeffs
C:\Windows\System32\drivers\etc>

change and redisplay
C:\Windows\System32\drivers\etc>attrib -r hosts
C:\Windows\System32\drivers\etc>attrib hosts*
A C:\Windows\System32\drivers\etc\hosts
A R C:\Windows\System32\drivers\etc\hosts-0
A R C:\Windows\System32\drivers\etc\hosts.00
A R C:\Windows\System32\drivers\etc\hosts.20200116-120718.backup
A R C:\Windows\System32\drivers\etc\hosts.20200116-121548.backup
A R C:\Windows\System32\drivers\etc\hosts.jeffs


In Addition, notice the SaveAs dialogue for All Files
1587570488303.jpeg

Now add +r to protect the file
C:\Windows\System32\drivers\etc>attrib +r hosts
C:\Windows\System32\drivers\etc>attrib hosts*
A R C:\Windows\System32\drivers\etc\hosts
A R C:\Windows\System32\drivers\etc\hosts-0
A R C:\Windows\System32\drivers\etc\hosts.00
A R C:\Windows\System32\drivers\etc\hosts.20200116-120718.backup
A R C:\Windows\System32\drivers\etc\hosts.20200116-121548.backup
A R C:\Windows\System32\drivers\etc\hosts.jeffs
 
Before executing wanted to check, I am considering
1. ARC:\\... and C:\\... are same.
2. In section2, there is 1 line in red. Will be executing that too.
 
READ more carefully:

A R is the OUTPUT from C:\\windows\...

Do not copy any preceding line numbers, just the text
 
Back