With this awesome list, you can now take the first three numbers of any MAC address and find its manufacturer. Here is a simple sample implementation taking the information from Get-NetAdapter, and adding Manufacturer info:
# accessing excel via COM $excel = New-Object-ComObject Excel.Application # make it visible (for debugging only, can be set to $false later in production) $excel.Visible = $true
$PathHTML = "$env:temp\report.htm" $html | Set-Content$PathHTML-Encoding UTF8 # open as HTML Invoke-Item-Path$PathHTML # open as Excel report Start-Process-FilePath excel -ArgumentList"""$PathHTML"""
# make sure the property gets piped to Out-String to turn its # content into readable text that can be displayed in the report $replacementStrings = @{ Name = 'ReplacementStrings' Expression = { ($_.ReplacementStrings | Out-String).Trim() } }
Get-EventLog-LogName System -EntryType Error -After$startDate | # select the properties to be included in your report Select-Object-Property EventId, Message, Source, InstanceId, TimeGenerated, $ReplacementStrings, UserName | ConvertTo-Html | Set-Content-Path$Path
# make sure the property gets piped to Out-String to turn its # content into readable text that can be displayed in the report $replacementStrings = @{ Name = 'ReplacementStrings' Expression = { $_.ReplacementStrings -join',' } }
Get-EventLog-LogName System -EntryType Error -After$startDate | # select the properties to be included in your report Select-Object-Property EventId, Message, Source, InstanceId, TimeGenerated, $ReplacementStrings, UserName | ConvertTo-Html | Set-Content-Path$Path
Get-EventLog-LogName System -EntryType Error -After$startDate | # select the properties to be included in your report Select-Object-Property EventId, Message, Source, InstanceId, TimeGenerated, ReplacementStrings, UserName | ConvertTo-Html | Set-Content-Path$Path