Skip to content

PowerShell module to help retrieve Hewlett-Packard Warranty Information

License

Notifications You must be signed in to change notification settings

Hossy/HPWarranty

 
 

Repository files navigation

HPWarranty PowerShell Module

As HP has recently split into two different companies, this is a complete rewrite, and is still beta. Cmdlet names and functionallity may change, I will not be supporting backwards compatibility.

This module can be installed from the PowerShellGallery. You need WMF 5 to use this feature.

Install-Module -Name HPWarranty

HP has recently split into two divisions, and this a first attempt to support both HP server and workstation warranty via PowerShell. I currently have no way to check if a machine is a 'Server' or a 'Workstaion', so that falls on you, for now. I have added the error returned from HP to the errorstream, so you should be able to tell what the issue is more easily. This is still very beta, so please report any issues. Thanks.

HPWarranty Cmdlets

Example 1:

# Execute from local HP workstation.
Get-HPIncWarrantyEntitlement

Example 2:

# Execute against remote HP workstation (must be on).
Get-HPIncWarrantyEntitlement -ComputerName 'MyFriendsHP.ourdomain.org'

Example 3:

# Execute for local HP Server
Get-HPWarrantyEntitlement

Example 4:

# Get info from ConfigMgr DB and then get warranty info.
# To use the Get-HPSystemInformationFromCMDB cmdlet, the MS_SystemInformation WMI Class needs to be inventoried.
# This is not done by default, and will need to be done in your client settings.
Get-HPSystemInformationFromCMDB -SqlServer 'mysccmserver' -Database 'CM_AB1' -IntergratedSecurity -ComputerName 'mycomputer' | Get-HPWarrantyEntitlement

About

PowerShell module to help retrieve Hewlett-Packard Warranty Information

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PowerShell 100.0%