Skip to content

Commit

Permalink
Update DNSInfo.psm1
Browse files Browse the repository at this point in the history
    1.1.2   08/10/2019  Ben Whitmore - Thanks to @IISResetMe
    Removed unnecessary parameter default for switch
  • Loading branch information
byteben committed Oct 8, 2019
1 parent e6782fe commit 286ad86
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions DNSInfo.psm1
Expand Up @@ -9,6 +9,9 @@
===========================================================================
Version:
1.1.2 08/10/2019 Ben Whitmore - Thanks to @IISResetMe
Removed unnecessary parameter default for switch
1.1.1 08/10/2019 Ben Whitmore - Thanks to @guyrleech
Changed Regex for IP Address matching to [ipaddress]
Expand Down Expand Up @@ -44,7 +47,7 @@ Doesn't output current DNS information
[CmdletBinding()]
Param
(
[Switch]$NoOutput = $False
[Switch]$NoOutput
)

#Get Domain Connected Network Adapter
Expand Down Expand Up @@ -122,11 +125,11 @@ Set-DNSInfo -NewDNS "1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4" -Backup -ResetLog -SkipDHC
(
[Parameter(Mandatory = $True)]
[String]$NewDNS,
[Switch]$Backup = $False,
[Switch]$ResetLog = $False,
[Switch]$Backup,
[Switch]$ResetLog,
[String]$LogDir = $ENV:TEMP,
[String]$BackupDir = $ENV:TEMP,
[Switch]$SkipDHCPCheck = $False
[Switch]$SkipDHCPCheck
)

#Split $NewDNS String
Expand Down

0 comments on commit 286ad86

Please sign in to comment.