{"id":14458812,"url":"https://github.com/erlwes/Get-LenovoInfo","last_synced_at":"2025-08-28T16:31:38.466Z","repository":{"id":254921105,"uuid":"847970172","full_name":"erlwes/Get-LenovoInfo","owner":"erlwes","description":"Get product- and warranty information of Lenovo PCs","archived":false,"fork":false,"pushed_at":"2024-08-30T22:00:38.000Z","size":149,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-01T19:02:01.030Z","etag":null,"topics":["endpoints","hardware","laptop","lenovo","model","serialnumber","specifications","warranty"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erlwes.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T22:29:39.000Z","updated_at":"2024-08-30T22:00:41.000Z","dependencies_parsed_at":"2024-09-01T19:02:03.237Z","dependency_job_id":null,"html_url":"https://github.com/erlwes/Get-LenovoInfo","commit_stats":null,"previous_names":["erlwes/get-lenovoinfo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlwes%2FGet-LenovoInfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlwes%2FGet-LenovoInfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlwes%2FGet-LenovoInfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlwes%2FGet-LenovoInfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erlwes","download_url":"https://codeload.github.com/erlwes/Get-LenovoInfo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231287221,"owners_count":18353173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["endpoints","hardware","laptop","lenovo","model","serialnumber","specifications","warranty"],"created_at":"2024-09-01T19:00:57.398Z","updated_at":"2025-08-28T16:31:38.459Z","avatar_url":"https://github.com/erlwes.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"![PowerShell](https://img.shields.io/badge/PowerShell-5+-blue)\n![PowerShell Gallery Downloads](https://img.shields.io/powershellgallery/dt/Get-LenovoInfo)\n\n# Get-LenovoInfo\nScript designed to retrieve and manage product specifications and warranty information for Lenovo devices using their serialnumbers.\n\nWhen a serial number is queried, the script checks the local cache to see if the information is already available. If not, it fetches the data from Lenovo's web services, adds it to the cache, and then provides the requested details.\nThe cache reduce the need for repeated online queries - this improves performance and offloads Lenovos APIs.\n\n### Screenshot 1 - Brief warranty\n![image](https://github.com/user-attachments/assets/b9dbbd62-b2d9-419b-8903-8c5f687f7609)\n\n### Screenshot 2 - Brief product specification\n![image](https://github.com/user-attachments/assets/2ec54acd-8535-40cf-8393-60d2a035da2a)\n\n## Install\n```PowerShell\nInstall-Script -Name Get-LenovoInfo\n```\n\n## TIPS 💡\n\n**Device age** - I found that using warranty start-date and todays date is good for calculating aproximate computer age. Sometimes one wants to identify the oldest computers so that one can prioritize replacement. Looking at CPU-generations etc. can be cumbersome.\nThe scripts calculates this age in years and presents it as \"YearsSinceBought\"\n\n**Hardware requirements** - The product specification includes detailed hardware info on all devices. As an example, one could easiliy identify computers with \u003c 8GB memory, or computers without a TPM 2.0 chip, and therefore not ready for Windows 11.\n\n## Check warranty on all Lenovo devices in Intune? 💻\nLook at this [practical example](https://github.com/erlwes/Get-LenovoInfo/blob/main/PracticalExample.md)\n\n## 🔵 Example 1 - Warranty lookup, brief output\n```PowerShell\nGet-LenovoInfo -Serialnumber PC29DABC -Brief\n```\n```\nDeliveryType     : On site\nProductName      : T14s Gen 4\nModel            : 21F6002NMX\nSerialNumber     : PC29DABC\nName             : 3Y Premier Support\nStatus           : Active\nDaysLeft         : 674\nYearsSinceBought : 1,28\n```\n\n## 🔵 Example 2 - Product specification lookup, brief output\n```PowerShell\nGet-LenovoInfo.ps1 -Serialnumber PC29DABC -Brief -Type ProductSpecification\n```\n```\nModelCode  Part             Value\n---------  ----             -----\n21BR002AMX Processor        Intel Core i5-1240P, 12C (4P + 8E) / 16T, P-core 1.7 / 4.4GHz, E-core 1.2 / 3.3GHz, 12MB\n21BR002AMX Graphics         Integrated Intel Iris Xe Graphics\n21BR002AMX Memory           16GB Soldered LPDDR5-4800\n21BR002AMX Memory Slots     Memory soldered to systemboard, no slots, dual-channel\n21BR002AMX Max Memory       16GB soldered memory, not upgradable\n21BR002AMX Storage          256GB SSD M.2 2280 PCIe x4 NVMe Opal 2.0\n21BR002AMX Storage Support  One drive, up to 2TB M.2 2280 SSD\n21BR002AMX Storage Slot     One M.2 2280 PCIe 4.0 x4 slot\n21BR002AMX Display          14\" WUXGA (1920x1200) IPS 400nits Anti-glare, 100% sRGB, Low Power\n21BR002AMX WLAN + Bluetooth Intel Wi-Fi 6E AX211, 802.11ax 2x2 + BT5.1\n```\n\n\n## 🔵 Example 3 - Multiple from pipeline, warranty sorted and formated as table\n```PowerShell\n'GM0CDABC', 'PF4A2ABC', 'GM03NABC', 'PC29DABC' | Get-LenovoInfo.ps1 -Brief | Sort YearsSinceBought | Format-Table\n```\n```\nDeliveryType ProductName Model      SerialNumber Name               Status  DaysLeft YearsSinceBought\n------------ ----------- -----      ------------ ----               ------  -------- ----------------\nOn site      T14s Gen 4  21F6002NMX GM0CDABC     3Y Premier Support Active  887      0,57\nOn site      T14s Gen 4  21F6002NMX PF4A2ABC     3Y Premier Support Active  674      1,28\nOn site      T14s Gen 3  21BR00F2MX GM03NABC     3Y Premier Support Active  582      1,41\nOn site      T14s Gen 2  20XF006RMX PC29DABC     1Y Premier Support Expired -551     2,51\n```\n\n\n## 🔵 Example 4 - Combined cache\n```PowerShell\nGet-LenovoInfo -ShowCachesCombined | Format-Table *\n```\n```\nSerial  \tModelCode \t\tProductName     \tWarrantyName      \tWarrantyDaysLeft\tDeviceAge\tDeviceMemory              \t\tDeviceProcessor                                                                          \tDeviceStorage\n------  \t--------- \t\t-----------     \t------------      \t----------------\t---------\t------------              \t\t---------------                                                                          \t-------------\nPC29DABC\t20XF006RMX\t\tT14s Gen 2      \t1Y Premier Support\t            -554\t     2,52\t16GB Soldered LPDDR4x-4266\t\tAMD Ryzen 7 PRO 5850U (8C / 16T, 1.9 / 4.4GHz, 4MB L2 / 16MB L3)                         \t512GB SSD M.2 2280 PCIe x4 NVMe Opal 2.0\nPF4GBABC\t21F6002NMX\t\tT14s Gen 4      \t3Y Premier Support\t             715\t     1,04\t16GB Soldered LPDDR5x-4800\t\tIntel Core i5-1335U, 10C (2P + 8E) / 12T, P-core 1.3 / 4.6GHz, E-core 0.9 / 3.4GHz, 12MB \t256GB SSD M.2 2280 PCIe 4.0x4 NVMe Opal 2.0\nPF29GABC\t20T0001NMX\t\tT14s            \t3Y On-site, 9X5   \t            -335\t     3,92\t16GB Soldered DDR4-2666   \t\tIntel Core i5-10210U (4C / 8T, 1.6 / 4.2GHz, 6MB)                                        \t256GB SSD M.2 2280 PCIe x4 NVMe Opal\nGM03NABC\t21BR00F2MX\t\tT14s Gen 3      \t3Y Premier Support\t             661\t     1,19\t16GB Soldered LPDDR5-4800 \t\tIntel Core i5-1250P, 12C (4P + 8E) / 16T, P-core 1.7 / 4.4GHz, E-core 1.2 / 3.3GHz, 12MB \t256GB SSD M.2 2280 PCIe x4 NVMe Opal 2.0\nPW05QABC\t21DE0029MX\t\tX1 Extreme Gen 5\t3Y Premier Support\t             641\t     1,24\t1x 32GB SO-DIMM DDR5-4800 \t\tIntel Core i7-12700H, 14C (6P + 8E) / 20T, P-core 2.3 / 4.7GHz, E-core 1.7 / 3.5GHz, 24MB\t512GB SSD M.2 2280 PCIe 4.0x4 Performance NVMe Op…\nGM00CABC\t21BR00EXMX\t\tT14s Gen 3      \t3Y Premier Support\t             523\t     1,57\t16GB Soldered LPDDR5-4800 \t\tIntel Core i5-1240P, 12C (4P + 8E) / 16T, P-core 1.7 / 4.4GHz, E-core 1.2 / 3.3GHz, 12MB \t256GB SSD M.2 2280 PCIe x4 NVMe Opal 2.0\n```\n\n## 🔵 Example 5 - Clear the cache\n```PowerShell\nGet-LenovoInfo -Serialnumber -ClearCache All\n```\n\n## 🔵 Example 6 - Get warranty on local machine\n```PowerShell\n(wmic bios get serialnumber)[2] | Get-LenovoInfo -Type Warranty\n```\n```\nWarrentyType     : 3EZ\nDeliveryType     : Depot/mail\nProductName      : T14s Gen 3 (Type 21BR 21BS) Laptop (ThinkPad) - Type 21BR\nModel            : 21BR002AMX\nSerialNumber     : PF3WABCD\nName             : 3Y Depot, 9X5 2BD Warranty\nDescription      : This product has a three year limited warranty and is entitled to depot/Carry-in repair service. Customers may call their local service center for more info\n                   rmation. Dealers may provide carry-in repair for this product. Batteries have a one year warranty. If pen comes with the product, pen  is entitled to one ye\n                   ar warranty.\nStatus           : Active\nStart            : 2022-09-14\nEnd              : 2025-09-13\nDuration         : 36\nDaysLeft         : 381\nOrigin           : Purchased Warranty\nCountryName      : Denmark\nYearsSinceBought : 1,96\n\nWarrentyType     : 1EZBAT\nDeliveryType     : Depot/mail\nProductName      : T14s Gen 3 (Type 21BR 21BS) Laptop (ThinkPad) - Type 21BR\nModel            : 21BR002AMX\nSerialNumber     : PF3WABCD\nName             : 1YR Battery (Carry-in/Depot Warranty)\nDescription      : The battery included within this product is entitled to a 1 year CRU/Depot/Carry-in warranty.  Please note that this may differ from the warranty of the bas\n                   e product itself.\nStatus           : Expired\nStart            : 2022-09-14\nEnd              : 2023-09-13\nDuration         : 12\nDaysLeft         : -349\nOrigin           : Purchased Warranty\nCountryName      : Denmark\nYearsSinceBought : 1,96\n\nWarrentyType     : UKN\nDeliveryType     : On site\nProductName      : T14s Gen 3 (Type 21BR 21BS) Laptop (ThinkPad) - Type 21BR\nModel            : 21BR002AMX\nSerialNumber     : PF3WABCD\nName             : 3Y Premier Support\nDescription      : This machine is entitled to a warranty upgrade of 3 year of Premier Support service.\nStatus           : Active\nStart            : 2022-09-14\nEnd              : 2025-09-13\nDuration         : 36\nDaysLeft         : 381\nOrigin           : Purchased Warranty\nCountryName      : Denmark\nYearsSinceBought : 1,96\n```\n\n## 🔵 Example 7 - Full product specification\n```PowerShell\nGet-LenovoInfo -Serialnumber PF3WABCD -Type ProductSpecification\n```\n```\nModelCode  Part                        Value                                                                                    Serial\n---------  ----                        -----                                                                                    ------\n21BR002AMX Processor                   Intel Core i5-1240P, 12C (4P + 8E) / 16T, P-core 1.7 / 4.4GHz, E-core 1.2 / 3.3GHz, 12MB PF3WABCD\n21BR002AMX Graphics                    Integrated Intel Iris Xe Graphics                                                        PF3WABCD\n21BR002AMX Chipset                     Intel SoC Platform                                                                       PF3WABCD\n21BR002AMX Memory                      16GB Soldered LPDDR5-4800                                                                PF3WABCD\n21BR002AMX Memory Slots                Memory soldered to systemboard, no slots, dual-channel                                   PF3WABCD\n21BR002AMX Max Memory                  16GB soldered memory, not upgradable                                                     PF3WABCD\n21BR002AMX Storage                     256GB SSD M.2 2280 PCIe x4 NVMe Opal 2.0                                                 PF3WABCD\n21BR002AMX Storage Support             One drive, up to 2TB M.2 2280 SSD                                                        PF3WABCD\n21BR002AMX Storage Slot                One M.2 2280 PCIe 4.0 x4 slot                                                            PF3WABCD\n21BR002AMX Card Reader                 None                                                                                     PF3WABCD\n21BR002AMX Optical                     None                                                                                     PF3WABCD\n21BR002AMX Audio Chip                  High Definition (HD) Audio, Realtek ALC3287 codec                                        PF3WABCD\n21BR002AMX Speakers                    Stereo speakers, 2W x2, Dolby Audio                                                      PF3WABCD\n21BR002AMX Camera                      FHD 1080p + IR Hybrid with Privacy Shutter                                               PF3WABCD\n21BR002AMX Microphone                  2x, Array                                                                                PF3WABCD\n21BR002AMX Battery                     Integrated 57Wh                                                                          PF3WABCD\n21BR002AMX Power Adapter               65W USB-C                                                                                PF3WABCD\n21BR002AMX Display                     14\" WUXGA (1920x1200) IPS 400nits Anti-glare, 100% sRGB, Low Power                       PF3WABCD\n21BR002AMX Touchscreen                 None                                                                                     PF3WABCD\n21BR002AMX Keyboard                    Backlit, Nordic (DK/FI/NO/SV)                                                            PF3WABCD\n21BR002AMX Case Color                  Thunder Black                                                                            PF3WABCD\n21BR002AMX Case Material               Carbon Fiber Hybrid (Top), Aluminium (Bottom)                                            PF3WABCD\n21BR002AMX Dimensions (WxDxH)          317.5 x 226.9 x 16.9 mm (12.5 x 8.93 x 0.67 inches)                                      PF3WABCD\n21BR002AMX Weight                      Starting at 1.21 kg (2.67 lbs)                                                           PF3WABCD\n21BR002AMX Operating System            Windows 11 Pro, Nordic (DK/FI/SV/NO/EN)                                                  PF3WABCD\n21BR002AMX Bundled Software            Intel Connectivity Performance Suite                                                     PF3WABCD\n21BR002AMX Ethernet                    No Onboard Ethernet                                                                      PF3WABCD\n21BR002AMX WLAN + Bluetooth            Intel Wi-Fi 6E AX211, 802.11ax 2x2 + BT5.1                                               PF3WABCD\n21BR002AMX WWAN                        WWAN Upgradable to 4G                                                                    PF3WABCD\n21BR002AMX SIM Card                    None                                                                                     PF3WABCD\n21BR002AMX NFC                         None                                                                                     PF3WABCD\n21BR002AMX Standard Ports              System.Object[]                                                                          PF3WABCD\n21BR002AMX Optional Ports (configured) System.Object[]                                                                          PF3WABCD\n21BR002AMX Docking                     Various docking solutions supported via Thunderbolt / USB-C                              PF3WABCD\n21BR002AMX Smart Card Reader           Smart Card Reader                                                                        PF3WABCD\n21BR002AMX Security Chip               Discrete TPM 2.0 Enabled                                                                 PF3WABCD\n21BR002AMX Fingerprint Reader          Touch Style, Match-on-Chip, Integrated in Power Button                                   PF3WABCD\n21BR002AMX Physical Locks              Kensington Nano Security Slot, 2.5 x 6 mm                                                PF3WABCD\n21BR002AMX Other Security              System.Object[]                                                                          PF3WABCD\n21BR002AMX System Management           Non-vPro                                                                                 PF3WABCD\n21BR002AMX Base Warranty               3-year, Courier or Carry-in                                                              PF3WABCD\n21BR002AMX Included Upgrade            CO2 Offset 1 ton, 3Y Premier Support HB (CPN)                                            PF3WABCD\n21BR002AMX Bundled Accessories         None                                                                                     PF3WABCD\n21BR002AMX Green Certifications        System.Object[]                                                                          PF3WABCD\n21BR002AMX Other Certifications        System.Object[]                                                                          PF3WABCD\n21BR002AMX Mil-Spec Test               MIL-STD-810H military test passed                                                        PF3WABCD\n```\n\n## 🔵 Example 8 - Warranty bypassing offline cache (-ForceWeb) with logging to console (-VerboseLogging)\n```PowerShell\nGet-LenovoInfo -Serialnumber PF3WABCD -Brief -Type ProductSpecification -VerboseLogging -ForceWeb\n```\n```\n27.08.2024 20:14:22 Info         Offline Cache - File exist ('C:\\Users\\Temp\\...\\Get-LenovoInfo-ProductIDCache.csv')\n27.08.2024 20:14:22 Success      Offline Cache - File loaded (1 entries)\n27.08.2024 20:14:22 Info         Offline Cache - File exist ('C:\\Users\\Temp\\...\\Get-LenovoInfo-ProductSpecificationsCache.csv')\n27.08.2024 20:14:22 Success      Offline Cache - File loaded (46 entries)\n27.08.2024 20:14:22 Warning      Parameter '-ForceWeb' used. Cache is excluded (not used, and results are not added to cache)\n27.08.2024 20:14:22 Success      Invoke-WebRequest - ProductID: 200 OK 'https://pcsupport.lenovo.com/gb/en/api/v4/mse/getproducts?productId=PF3WABCD'\n27.08.2024 20:14:22 Info         Offline Cache - Product Specifications: Model '21BR002AMX' not found in cache\n27.08.2024 20:14:22 Success      Invoke-WebRequest - Product Specification: 200 OK 'https://psref.lenovo.com/api/model/Info/SpecData?model_code=21BR002AMX'\n```\n\n```\nModelCode  Part             Value\n---------  ----             -----\n21BR002AMX Processor        Intel Core i5-1240P, 12C (4P + 8E) / 16T, P-core 1.7 / 4.4GHz, E-core 1.2 / 3.3GHz, 12MB\n21BR002AMX Graphics         Integrated Intel Iris Xe Graphics\n21BR002AMX Memory           16GB Soldered LPDDR5-4800\n21BR002AMX Memory Slots     Memory soldered to systemboard, no slots, dual-channel\n21BR002AMX Max Memory       16GB soldered memory, not upgradable\n21BR002AMX Storage          256GB SSD M.2 2280 PCIe x4 NVMe Opal 2.0\n21BR002AMX Storage Support  One drive, up to 2TB M.2 2280 SSD\n21BR002AMX Storage Slot     One M.2 2280 PCIe 4.0 x4 slot\n21BR002AMX Display          14\" WUXGA (1920x1200) IPS 400nits Anti-glare, 100% sRGB, Low Power\n21BR002AMX WLAN + Bluetooth Intel Wi-Fi 6E AX211, 802.11ax 2x2 + BT5.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferlwes%2FGet-LenovoInfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferlwes%2FGet-LenovoInfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferlwes%2FGet-LenovoInfo/lists"}