How to Change Website Binding With PowerShell
Your computer uses a hosts file that helps translate IP addresses into domain names and vice versa. The rules that are in the hosts file override any other website binding rules on the computer, so if you make changes to this hosts file by binding a site to an IP address, it remains that way until you undo the change.
Instructions
-
-
1
Open the "Start" menu, click in the search box, type "powershell" and press "Enter."
-
2
Type the following command into the Powershell window, then press "Enter":
Get-Content "C:\Windows\system32\drivers\etc\hosts"
-
-
3
Type in the changes to the file that you want to make.
-
4
Press the "Ctrl" and "X" keys together to save the file and exit Powershell.
-
1