Search code examples
windowspowershellcommandpowershell-cmdlet

How to open windows OS host entry file with powershell cmdlet or windows run dialog box?


I hope there must be powershell cmdlet to open the Windows host entry file. I have checked across the net and I could to find the windows command for opening the host entry file, so I can utilize it in Windows Run Dialog box


Solution

  • Windows host entry file is just a text file, so all you need to do is:

    notepad c:\windows\system32\drivers\etc\hosts