mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-05 07:20:09 +00:00
Trim Trailing Whitespace
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
function Set-WinUtilDNS {
|
||||
<#
|
||||
|
||||
|
||||
.DESCRIPTION
|
||||
This function will set the DNS of all interfaces that are in the "Up" state. It will lookup the values from the DNS.Json file
|
||||
|
||||
.EXAMPLE
|
||||
|
||||
Set-WinUtilDNS -DNSProvider "google"
|
||||
|
||||
|
||||
#>
|
||||
param($DNSProvider)
|
||||
if($DNSProvider -eq "Default"){return}
|
||||
@@ -27,6 +27,6 @@ function Set-WinUtilDNS {
|
||||
}
|
||||
Catch{
|
||||
Write-Warning "Unable to set DNS Provider due to an unhandled exception"
|
||||
Write-Warning $psitem.Exception.StackTrace
|
||||
Write-Warning $psitem.Exception.StackTrace
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user