# Unable to update host file error - have tried all solutions in forum, UAC prompt for cmd failing?

**URL:** <https://community.localwp.com/t/unable-to-update-host-file-error-have-tried-all-solutions-in-forum-uac-prompt-for-cmd-failing/41584>\
**Category:** Support\
**Tags:** hosts-file, windows-10\
**Created:** [February 28, 2024, 1:32am UTC](https://community.localwp.com/t/unable-to-update-host-file-error-have-tried-all-solutions-in-forum-uac-prompt-for-cmd-failing/41584 "2024-02-28T01:32:52Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Graywaren](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/graywaren/32/21651_2.png) [@Graywaren](https://community.localwp.com/u/Graywaren)\
**Post date:** [February 28, 2024, 6:10pm UTC](https://community.localwp.com/t/unable-to-update-host-file-error-have-tried-all-solutions-in-forum-uac-prompt-for-cmd-failing/41584/5 "2024-02-28T18:10:46Z")

</div>

I’ve gone through the entire process multiple times again. I’m still getting cannot update hosts file etc. From what I can tell from all this, and comparing it to the other computer, Local is failing to use CMD to edit the hosts file. The other computer generated the UAC prompt to grant cmd permission to make changes during website creation, my computer does not. Any idea how to fix this issue? Here’s more things I’ve tried:

- I made sure the hosts file security matched this [video](https://www.youtube.com/watch?v=V8efl5S2dNM)
- Tried with UAC on always notify, default, and never notify with restarts between each
- I tried Method 3 from [this](https://techcult.com/fix-access-denied-when-editing-hosts-file/#Why_cant_I_edit_the_hosts_file_even_as_Administrator), linked to in yet another thread about this error
- Replaced the hosts file with a new copy
- I found [this ticket](https://community.localwp.com/t/missing-hosts-entry-user-did-not-grant-permission-windows-10/19436/4), which sounds nearly identical to the issue I’m having, but I don’t have an associated program with .bat files as far as I can tell from checking, so that didn’t work to fix it. I even tried resetting all default apps and that didn’t work either.  
 ![bat](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/0/e/0e559258b81299ef31e9226b2bca1826bab6b1e7.jpeg)

In case it’s relevant that windows version on the computer it worked on is:  
Win 10 Pro Build 19045

I found a picture in [this thread](https://community.localwp.com/t/after-installing-the-local-package-i-proceeded-to-create-the-first-website-but-before-creation-i-get-this-message-after-which-the-creation-procedure-is-cancelled/41335/7) of the UAC prompt that does **not** happen on my laptop:  
 ![68f1c6da7a1e5c8587825393b6acf037550130d7_2_690x431](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/b/8/b81dbb7587a96e7bf58ed85448845c13390109e9.jpeg)

My account is an administrator and admins have full control for the hosts file.

---

_[View the full topic](https://community.localwp.com/t/unable-to-update-host-file-error-have-tried-all-solutions-in-forum-uac-prompt-for-cmd-failing/41584)._
