Skip to content

Commit

Permalink
Displayed WinPcap info in DiagReport.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Dec 6, 2016
1 parent f40988d commit 0475abf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions installer/DiagReport.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,23 @@ if ($os_bit -eq "64-bit")
dir "C:\Windows\SysWOW64\Npcap\"
}

#########################################################
write_report ("`n")
write_report ("*************************************************")
write_report ("WinPcap Info:")
write_report ("*************************************************")

if ($os_bit -eq "32-bit")
{
write_report ("HKLM:\SOFTWARE\WinPcap:")
(Get-ItemProperty HKLM:\SOFTWARE\WinPcap | out-string -stream | ? { $_ -NOTMATCH '^ps.+' })
}
else
{
write_report ("HKLM:\SOFTWARE\WOW6432Node\WinPcap:")
(Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\WinPcap | out-string -stream | ? { $_ -NOTMATCH '^ps.+' })
}

#########################################################
write_report ("`n")
write_report ("*************************************************")
Expand Down

0 comments on commit 0475abf

Please sign in to comment.