Skip to content

Commit 23f3be6

Browse files
authored
Create clear_dns.ps1
1 parent 6ad4932 commit 23f3be6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clear_dns.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Write-Host "PowerShell Game Enhancer`n"
2+
3+
# Infinte While-Loop that clears the user's DNS until they press Ctrl + c.
4+
while($true)
5+
{
6+
# Runs the ipconfig flush dns command to flush the user's DNS
7+
ipconfig /flushdns;
8+
# Adds a 2 minute delay to make the script flush the DNS every 2 minutes
9+
sleep 120
10+
}

0 commit comments

Comments
 (0)