How to confirm if Dell HAPI driver is installed on the system

How to confirm if Dell HAPI driver is installed on the system


<#
.Synopsis

Check if Dell HAPI driver is installed on the local computer
.Description
This script checks whether Dell's System Management driver called HAPI driver is installed on the system.
.Example
.\CheckDellHAPI.ps1
#>


Function Check-DellHapi()
{
$a = driverquery.exe /v /fo csv | ConvertFrom-CSV | Where {$_.'Module Name' -match 'Dcdbas'}

if (! $a) {
Write-Output "Dell HAPI driver is not installed on $env:COMPUTERNAME."
}
else {
if (!($a.State -eq "Running"))
{
Write-Output "Dell HAPI driver is installed but not running on $env:COMPUTERNAME."
}
else
{
Write-Output "Dell HAPI driver is installed and running on $env:COMPUTERNAME."
}
}
}

Check-DellHapi




Article ID: SLN310046

Last Date Modified: 08/14/2018 06:41 AM


Rate this article

Accurate
Useful
Easy to understand
Was this article helpful?
Yes No
Send us feedback
Comments cannot contain these special characters: <>()\
Sorry, our feedback system is currently down. Please try again later.

Thank you for your feedback.