diff --git a/Get-DNSHostEntryAsync.ps1 b/Get-DNSHostEntryAsync.ps1 index e7301b4..b1cd9ae 100644 --- a/Get-DNSHostEntryAsync.ps1 +++ b/Get-DNSHostEntryAsync.ps1 @@ -59,7 +59,7 @@ } } End { - $Task = ForEach ($Computer in $Computername) { + $Task = ForEach ($Computer in $Computerlist) { If (([bool]($Computer -as [ipaddress]))) { [pscustomobject] @{ Computername = $Computer diff --git a/Test-ConnectionAsync.ps1 b/Test-ConnectionAsync.ps1 index 8530a45..d7d51f7 100644 --- a/Test-ConnectionAsync.ps1 +++ b/Test-ConnectionAsync.ps1 @@ -171,7 +171,7 @@ Function Test-ConnectionAsync { } } End { - $Task = ForEach ($Computer in $Computername) { + $Task = ForEach ($Computer in $Computerlist) { [pscustomobject] @{ Computername = $Computer Task = (New-Object System.Net.NetworkInformation.Ping).SendPingAsync($Computer,$Timeout, $Buffer, $PingOptions)