Get-LenovoInfo

1.8.0

The scripts will create a local CSV-file cache, and then add warranty and/or product specifications for every serialnumber that is queried, and store it to the cache.
If the serialnumber/model-code does not exist in cache (eg. first time queried), the script will go online and fetch warranty and/or product spec info from Lenovo web-services.
In addition to the standar
The scripts will create a local CSV-file cache, and then add warranty and/or product specifications for every serialnumber that is queried, and store it to the cache.
If the serialnumber/model-code does not exist in cache (eg. first time queried), the script will go online and fetch warranty and/or product spec info from Lenovo web-services.
In addition to the standard output from Lenovo web-pages, days left of warranty or days since expired will be calculated, alog with an aproximate age of the computer using (years since waranty start)

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Get-LenovoInfo

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Erlend Westervik

Tags

Device Warranty Lenovo Hardware Age Warranties Endpoint Management Serialnumber Serial Product Model Manufacturer Specification Specc

Functions

Write-Log Invoke-ProductIDWebRequest Invoke-ProductSpecificationWebRequest Invoke-WarrantyWebRequest Import-CSVCache Clear-CSVCache Test-CSVCache Test-CSVProductIDCacheMatch Test-CSVProductSpecificationCacheMatch Test-CSVWarrantyCacheMatch

Dependencies

This script has no dependencies.

Release Notes

Version: 1.0.0 - Original published version
Version: 1.1.0 - Rewrite. New baseline.
Version: 1.5.0 - Added 'ShowCachesCombined' + fixed some output that got pre-formated
Version: 1.6.0 - Added 'VerboseLogging'-parameter and changed default cache location to script location instead of current directory.
Version: 1.8.0 - Added PostWarrantyService/ContractWarranties (extended support) to the results.

FileList

Version History

Version Downloads Last updated
1.8.0 (current version) 40 8/30/2024
1.7.0 9 8/30/2024
1.6.0 14 8/27/2024
1.5.0 6 8/27/2024
1.4.0 6 8/26/2024
1.3.0 5 8/26/2024
1.2.0 5 8/26/2024
1.1.0 6 8/26/2024
Show more