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

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

Cet article s’applique à Cet article ne s’applique pas à Cet article n’est lié à aucun produit spécifique. Toutes les versions de produits ne sont pas identifiées dans cet article.

Symptômes

<#  
.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

Propriétés de l’article
Numéro d’article: 000147517
Type d’article: Solution
Dernière modification: 21 févr. 2021
Version:  3
Obtenez des réponses à vos questions auprès d’autre utilisateurs de Dell
Services de soutien
Vérifiez si votre appareil est couvert par les services de soutien.