Skip to content

Commit cd2cfa5

Browse files
committed
Update
1 parent b3a3a3c commit cd2cfa5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Scripts/New-IPv4NetworkScan.ps1

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,7 @@ Begin{
175175
$_.Exception.Message
176176
}
177177
}
178-
179-
# Check for Update
180-
if($UpdateList.IsPresent)
181-
{
182-
UpdateListFromIEEE
183-
}
184-
elseif(($EnableMACResolving.IsPresent) -and (-Not([System.IO.File]::Exists($CSV_MACVendorList_Path))))
185-
{
186-
Write-Host 'No CSV-File to assign vendor with MAC-Address found! Use the parameter "-UpdateList" to download the latest version from IEEE.org. This warning doesn`t affect the scanning procedure.' -ForegroundColor Yellow
187-
}
188-
178+
189179
# Helper function to convert a subnetmask
190180
function Convert-Subnetmask
191181
{
@@ -434,6 +424,16 @@ Begin{
434424
}
435425

436426
Process{
427+
# Check for vendor list update
428+
if($UpdateList.IsPresent)
429+
{
430+
UpdateListFromIEEE
431+
}
432+
elseif(($EnableMACResolving.IsPresent) -and (-Not([System.IO.File]::Exists($CSV_MACVendorList_Path))))
433+
{
434+
Write-Host 'No CSV-File to assign vendor with MAC-Address found! Use the parameter "-UpdateList" to download the latest version from IEEE.org. This warning doesn`t affect the scanning procedure.' -ForegroundColor Yellow
435+
}
436+
437437
# Calculate Subnet (Start and End IPv4-Address)
438438
if($PSCmdlet.ParameterSetName -eq 'CIDR' -or $PSCmdlet.ParameterSetName -eq 'Mask')
439439
{

0 commit comments

Comments
 (0)