Have you ever needed to quickly find your HP laptop’s product number but couldn’t locate the sticker? Maybe you’re contacting HP support, checking your warranty status, or identifying your exact model for software compatibility. In this article, I will show you how to find HP laptop product number using PowerShell or the command prompt.
I will also show you how to retrieve the HP laptop’s product name and serial number from the command prompt.
Why Would You Need Your HP Laptop’s Product Number?
Before checking the methods, let’s understand why your HP laptop’s product number matters:
- Checking warranty status
- Downloading the correct drivers
- Finding compatible accessories and upgrades
- Getting accurate technical support
- Determining the exact specifications of your model
Find HP Laptop Product Number Using PowerShell
Now, let’s explore how to find the HP laptop’s product name or serial number.
HP product numbers are typically found on the physical device or warranty card, but PowerShell gives us a more efficient way to access this information.
Method 1: Using Command Prompt to Find Your HP Laptop Model Number
The Command Prompt is one of the quickest ways to retrieve your HP laptop’s model information. This method works universally across HP laptops.
Here are the detailed step-by-step instructions.
- Click on the Windows Start button
- Type “cmd” or “Command Prompt” in the search bar
- Right-click on “Command Prompt” and select “Run as administrator”
- In the Command Prompt window, type: wmic csproduct get name and press Enter
- Your HP laptop model will be displayed immediately below the command
This simple command displays your HP laptop model without requiring you to flip over your device or navigate through multiple settings menus.
I executed the above cmd, and you can see the exact output in the screenshot below; it is displaying my HP laptop model name.

Check out How to Install RSAT in Windows 11 Using PowerShell?
Method 2: Finding the HP Product Number via Registry and Command Prompt
The product number (sometimes called the product ID) is slightly different from the model name and provides more specific information about your exact HP laptop configuration.
Using the command prompt, you can also get the HP laptop product number from the registry. Here are the steps:
- Open the Command Prompt as administrator
- Type the following command:
reg query HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS /v SystemSKU - Press Enter
- Look for the value next to “SystemSKU” – this is your HP product number
This command directly queries the registry where HP stores the product number information, giving you the exact product number assigned to your specific laptop.
Check out Get Windows Update History Using PowerShell
Method 3: Basic WMI Query for Local HP Laptop Information Using PowerShell
PowerShell provides a simple command to retrieve basic model information from your local HP laptop. You can use the Get-WmiObject cmdlet.
To run this command, make sure you have opened the PowerShell editor or command editor in administrator mode.
Below is the command that provides the basic information of your HP laptop such as manufacturer and model.
Get-WmiObject -Class Win32_ComputerSystem | Select-Object Manufacturer, ModelThis command returns the manufacturer and model of your computer. For HP laptops, the manufacturer will be “HP” or “Hewlett-Packard.”
I executed the above cmdlet using VS code, and you can see the exact output in the screenshot below:

The command below lets you get more detailed information about your HP laptop.
Get-WmiObject -Class Win32_ComputerSystem | Select-Object Manufacturer, Model, SystemSKUNumberThe SystemSKUNumber property often contains the product number for HP devices.
Check out Restart a Windows Service Using PowerShell
Method 4: Find HP Product Number Using WMIC Command
Windows Management Instrumentation Command-line (WMIC) provides another reliable method to retrieve your HP laptop’s information.
Here are the steps for how you can use the WMIC commands.
- Open the Command Prompt as administrator
- Type the below cmdlet in the command prompt and then Press Enter.
wmic baseboard get product,Manufacturer,version,serialnumberThe output will display detailed information about your HP laptop
You can also try using the below cmdlet for more specific product information.
wmic csproduct get name,identifyingnumber,uuidThis command provides both the model name and identifying information, which often includes or helps determine the product number.
Read How to Install Git on Windows Using PowerShell?
Method 5: Physical Methods to Locate Your HP Laptop’s Product Number
While command-line methods are convenient, sometimes, checking the physical device is the most reliable approach.
Here is the information of where to find the product number on your physical HP Laptop:
- Bottom of the laptop: Look for a label with “Product No.” or “P/N” followed by the product number
- Inside the battery compartment: On some models, you’ll need to remove the battery to see the label
- On the original packaging: If you still have the box your HP laptop came in
The product number is typically found on a sticker on your HP laptop’s bottom or back panel.
Read Monitor and Manage CPU Usage using Windows PowerShell
Method 6: HP Support Assistant Software
If you have HP Support Assistant installed (which comes pre-installed on most HP laptops), you can use it to find your product information.
Here is how you can use the HP Support Assistant:
- Open HP Support Assistant from your Start menu
- Click on “My devices” or your device name
- Look for “Product name” and “Product number” in the device information section
Method 7: HP BIOS Information for Additional Details
HP often stores additional information in the BIOS that can be accessed through PowerShell:
Get-WmiObject -Class Win32_BIOS | Select-Object Manufacturer, SerialNumber, VersionHere is the exact output in the screenshot below:

For HP-specific BIOS information that might contain the product number or SKU, try:
Get-WmiObject -Namespace root\HP\InstrumentedBIOS -Class HP_BIOSString -ErrorAction SilentlyContinue |
Where-Object {$_.Name -like "*Product*"} |
Select-Object Name, ValueNote: This command specifically targets HP’s WMI namespace and may not work on all HP models.
Check out Disable Windows Defender Using PowerShell
Remote HP Laptop Product Number Retrieval
One of the biggest advantages of PowerShell is the ability to gather information remotely. Here’s how to get product information from a remote HP laptop:
$computerName = "RemoteComputerName"
Get-WmiObject -Class Win32_ComputerSystem -ComputerName $computerName | Select-Object Manufacturer, Model, SystemSKUNumberReplace “RemoteComputerName” with the remote computer’s hostname or IP address.
Bulk Product Number Retrieval for Multiple HP Laptops using PowerShell
If you manage a fleet of HP laptops, checking each one individually is inefficient. Here’s a script to get product information from multiple computers:
$computers = @("Computer1", "Computer2", "Computer3")
$results = @()
foreach ($computer in $computers) {
try {
$info = Get-WmiObject -Class Win32_ComputerSystem -ComputerName $computer -ErrorAction Stop |
Select-Object @{Name="ComputerName";Expression={$computer}},
Manufacturer,
Model,
SystemSKUNumber
$results += $info
}
catch {
Write-Warning "Could not connect to $computer. Error: $_"
}
}
$results | Format-Table -AutoSizeCheck out Install Snipping Tool in Windows 11 Using PowerShell
Get HP Laptop Serial Number from Command Prompt
Similarly, we can get a laptop’s serial number from the command prompt.
Open the command prompt (Press Window + R which will open the Run box. Type “cmd” and click OK, which will open the command prompt.). Make sure to open the command prompt as administrator.
Then, type the below command:
WMIC CSPRODUCT GET SERIALNUMBERThis will display the laptop’s serial number like below:

This is one of the easiest ways to get the HP laptop’s serial number.
Differences Between HP Model Numbers, Product Numbers, and Serial Numbers
Understanding the difference between these identifiers is important:
| Identifier | Format | Purpose | Example |
|---|---|---|---|
| Model Number | Simple name | General product line | HP Pavilion 15 |
| Product Number | Alphanumeric code (typically starts with letters) | Specific configuration | 2R8Y6UA#ABA |
| Serial Number | Unique alphanumeric code | Identifies your exact unit | 5CD9275XYZ |
The product number provides the necessary series information that helps identify the exact configuration of your HP laptop, which is essential for support and compatibility purposes.
Troubleshooting Common Issues
If you’re having trouble retrieving HP product information:
- Permission Issues: Ensure you’re running PowerShell as an administrator
- Remote Access: Check that WMI is accessible through the firewall
- HP-Specific WMI: Some older HP models may use different WMI classes or namespaces
- BIOS Configuration: In some cases, you may need to configure the BIOS to expose all product information
Conclusion
PowerShell provides multiple efficient ways to retrieve HP product numbers without physically inspecting each device. In this tutorial, I explained how to find an HP laptop’s product number or serial number using the command prompt or PowerShell. Do let me know if this works for you.
You may also like:
- Get an IP Address Using PowerShell in Windows
- Change Windows 11 Desktop Background Color with PowerShell
- How to Easily Rename a Windows Computer Using PowerShell?
Bijay Kumar is an esteemed author and the mind behind PowerShellFAQs.com, where he shares his extensive knowledge and expertise in PowerShell, with a particular focus on SharePoint projects. Recognized for his contributions to the tech community, Bijay has been honored with the prestigious Microsoft MVP award. With over 15 years of experience in the software industry, he has a rich professional background, having worked with industry giants such as HP and TCS. His insights and guidance have made him a respected figure in the world of software development and administration. Read more.