Highlighted
Contributor
Contributor

Script : Get ESXi Info & Warranty Check

Hello Guys.

I need to build a powershell script that will show me :

VMHost , Vendor , ESXi Version , Model , Serial Number , Warranty

Currently i have :

foreach($esxcli in Get-VMHost | Get-EsxCli -V2){

    $esxcli.hardware.platform.get.Invoke() |

    Select @{N='VMHost';E={$esxcli.VMHost.Name}},VendorName,ProductName,SerialNumber

}

how its possible to add warrany check from HP ?

0 Kudos
1 Reply
Highlighted
Virtuoso
Virtuoso

You have to sign up as a developer on HPE first to get access to their API

hp's Developer Portal | Get‐HPWarranty

We do this with Dell because we are a Dell shop. But it looks and works very similar.

I dont see much relevance to this VMware forum of course.

Regards,

Joerg

0 Kudos