跳至主要內容
  • 簡單快速地下訂單
  • 檢視訂單及追蹤商品運送狀態
  • 建立並存取您的產品清單

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

文章屬性
文章編號: 000147517
文章類型: Solution
上次修改時間: 21 2月 2021
版本:  3
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。