dotfiles/PS/bootstrap.ps1

15 lines
622 B
PowerShell
Raw Normal View History

#Powershell based windows 10 bootstrap script
# First we source in our powershell profile so we can have some useful utilities
2021-10-28 21:51:17 -04:00
. "./PowerShellProfile.ps1"
# First step is to overwrite our current profile with a symlink to the correct one.
Remove-Item -Force -Path $profile
2021-10-28 21:51:17 -04:00
New-Item -ItemType SymbolicLink -Target "./PowerShellProfile.ps1" -Path $profile
# Now ensure our dnsservers are properly set up
Invoke-Elevated {
Get-NetAdapter | ForEach-Object {
2021-10-28 21:51:17 -04:00
Set-DnsClientServerAddress -InterfaceIndex $_.ifIndex -ServerAddresses 1.1.1.1, 1.0.0.1, 2606:4700:4700::1111, 2606:4700:4700::1001
2020-02-09 07:44:46 -06:00
}
}