Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
PipeItToDevNull committed Oct 23, 2022
2 parents c22c066 + 4d53b51 commit ea38bae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion files/src/data.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $runningProcesses = Get-Process
$volumes = Get-Volume
$dns = Get-DnsClientGlobalSetting
$netAdapters = Get-NetADapter
$issueDevices = Get-PnpDevice -PresentOnly -Status ERROR,DEGRADED,UNKNOWN -ErrorAction SilentlyContinue
$pnpDevices = Get-PnpDevice -PresentOnly -ErrorAction SilentlyContinue

# janky check for msconfig core setting
$bcdedit = bcdedit | Select-String numproc
Expand Down
8 changes: 5 additions & 3 deletions files/src/functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,12 @@ function getDrivers {
Write-Host 'Getting driver information...'
$1 = "<h2 id='Drivers'>Drivers and device versions</h2>"
$2 = $(gwmi Win32_PnPSignedDriver | Select devicename,driverversion | ConvertTo-Html -Fragment)
$3 = "<h2 id='issueDevices'>Devices with issues</h2>"
$4 = $issueDevices | Select Status,Name,InstanceID | ConvertTo-HTML -Fragment
$3 = "<h2 id='usbDevices'>USB Devices</h2>"
$4 = $pnpDevices | ? { $_.InstanceId -match '^USB' } | Select FriendlyName,Description,Class,InstanceID,Status,Service | ConvertTo-Html -Fragment
$5 = "<h2 id='issueDevices'>Devices with issues</h2>"
$6 = $pnpDevices | ? { $_.Status -Match "Error|Warning|Degraded|Unknown" } | Select Status,Name,InstanceID | ConvertTo-HTML -Fragment
Write-Host 'Got driver information' -ForegroundColor Green
Return $1,$2,$3,$4
Return $1,$2,$3,$4,$5,$6
}
function getAudio {
Write-Host 'Getting audio devices...'
Expand Down
1 change: 1 addition & 0 deletions files/src/outfunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ $1 = '<a name="top"></a>
<p><a href="#NetConfig">Network Configuration</a></p>
<p><a href="#NetConnections">Network Connections</a></p>
<p><a href="#Drivers">Drivers and device versions</a></p>
<p><a href="#usbDevices">USB Devices</a></p>
<p><a href="#issueDevices">Devices with issues</a></p>
<p><a href="#Audio">Audio Devices</a></p>
<p><a href="#Disks">Disk Layouts</a></p>
Expand Down

0 comments on commit ea38bae

Please sign in to comment.