This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 21 12 | |
| 63 36 | |
| 291 192 | |
| 502 250 | |
| 2518 1258 | |
| 2817 1872 | |
| 2991 1992 | |
| 4435 3544 | |
| 5229 2952 | |
| 5367 3576 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Powershell script for adding/removing/showing entries to the hosts file. | |
| # | |
| $file = join-path -path $env:SystemRoot -childpath "System32\drivers\etc\hosts" | |
| function add-host([string]$filename, [string]$ip, [string]$hostname) { | |
| remove-host $filename $hostname | |
| $ip + "`t`t" + $hostname | Out-File -encoding ASCII -append $filename | |
| } |