Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.63 KB

File metadata and controls

42 lines (33 loc) · 1.63 KB

Warning

This repository is not affiliated with ControlD Inc in any way. You use scripts from this repository at your own risk. The author is not responsible for any damage resulting from the use of these scripts. You have been warned.

   _____ _______ _____  _      _____    __          _______ _   _    _____ _   _  _____ _______ 
  / ____|__   __|  __ \| |    |  __ \   \ \        / /_   _| \ | |  |_   _| \ | |/ ____|__   __|
 | |       | |  | |__) | |    | |  | |   \ \  /\  / /  | | |  \| |    | | |  \| | (___    | |   
 | |       | |  |  _  /| |    | |  | |    \ \/  \/ /   | | | . ` |    | | | . ` |\___ \   | |   
 | |____   | |  | | \ \| |____| |__| |     \  /\  /   _| |_| |\  |   _| |_| |\  |____) |  | |   
  \_____|  |_|  |_|  \_\______|_____/       \/  \/   |_____|_| \_|  |_____|_| \_|_____/   |_|   
                                                                                                

USAGE

Warning

Be sure you bypass running PowerShell Scripts as Admin for local files:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Check status:

Get-ExecutionPolicy -List

Before you go, be sure you have default DNS setup in Windows.
Use valid -InterfaceIndex.
Get it from Get-DnsClientServerAddress
Example: Set-DnsClientServerAddress -InterfaceIndex 1 -ResetServerAddresses;Set-DnsClientServerAddress -InterfaceIndex 2 -ResetServerAddresses
Execute *.ps1 files in PowerShell.
CTRLD will set localhost as DNS Server.

REFERENCE