Skip to content

Find warranty and support contract information for HPE hardware using PowerShell

License

Notifications You must be signed in to change notification settings

atkinsroy/HPEwarranty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPEwarranty

Find warranty and support contract information for HPE hardware using PowerShell

Requirements

  • Internet facing computer
  • Selenium PowerShell Module downloaded from the PowerShell Gallery

Installation

To use the script on an Internet facing computer:

  1. Install the PowerShell Module called Selenium (https://github.com/adamdriscoll/selenium-powershell) from the PowerShell Gallery:
    PS> install-module Selenium -Scope AllUsers
    PS> Get-module Selenium -Listavailable

Note the location of the installed module. This will depend on the version of PowerShell you have and on the scope chosen above (Allusers/CurrentUser)

  1. If you are using PowerShell 7.x and with scope AllUsers, enter the following (adjust as necessary):
    PS> $env:PATH += "C:\Program Files\PowerShell\Modules\Selenium\3.0.1\assemblies\"
    PS> Add-Type -Path "C:\Program Files\PowerShell\Modules\Selenium\3.0.1\assemblies\WebDriver.dll"
  1. Selenium ships with Browser drivers for Chrome, Firefox, Edge. These will probably be out of date for the version of the broswer you have installed. You will need to download a matching driver. For Chrome, install the appropriate driver from https://sites.google.com/a/chromium.org/chromedriver/downloads, replacing the chromedriver.exe file in the same Selenium install folder, as above.

Example usage

    PS C:\> .\Get-HPEwarranty -Filename serial.csv -verbose

Get the warranty information for all serial numbers in the specified CSV file. Use -Verbose to provide status messages. This will create a new file called serial_new.csv with the HPE warranty information appended to the original objects.

    PS C:\> .\Get-HPEwarranty -Filename serial.csv -verbose -ignore XXX1111XXXX,YYY2222YYYY

Use the -ignore parameter to exclude one or more problematic serial numbers. These will show up in the final report with a suitable message.

    PS C:\> .\Get-HPEwarranty -Filename serial.csv -verbose -ignore C:\Ignore.txt

Use the -ignore parameter to exclude one or more problematic serial numbers from an input text file. These will show up in the final report with a suitable message.

About

Find warranty and support contract information for HPE hardware using PowerShell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published