In this tutorial, I will explain how to quickly find your HP laptop’s model number and serial number using PowerShell on Windows. This information is useful when you need to check your warranty status, download drivers, or get technical support for your HP laptop.
Why Use PowerShell to Find HP Laptop Details
While you can usually find the serial number and product number on a sticker on the bottom of your HP laptop, using PowerShell allows you to retrieve this information remotely without having to check the device physically. This is handy for IT administrators who manage a fleet of HP laptops.
PowerShell provides a fast and convenient way to access your HP laptop’s details that are stored in the Windows registry.
Step 1: Open PowerShell
To get started, you first need to open PowerShell on your HP laptop:
- Click the Start menu and type “PowerShell”
- Select “Windows PowerShell” from the search results to launch the PowerShell console
Step 2: Find the HP Laptop Serial Number
To retrieve the serial number of your HP laptop, run the following command in the PowerShell window:
Get-WmiObject win32_bios | select SerialnumberPress Enter, and PowerShell will display your HP laptop’s serial number, like this example output:
SerialNumber
------------
5CD25TYCUAs you can see, I executed the above PowerShell cmdlet using VS code, and it displayed the serial number of my HP laptop.

Read Get the Windows Version Using PowerShell
Step 3: Find the HP Laptop Model Number
You can also use PowerShell to find your HP laptop’s model number easily. Enter this command:
Get-CimInstance Win32_ComputerSystemProduct | Select NamePowerShell will output your specific HP laptop model, such as:
Name
----
HP Pavilion 15-cs3xxx Knowing your exact HP laptop model number makes finding compatible parts and upgrades simple and troubleshooting any hardware issues.
Here is the exact output in the screenshot below:

Check out Rename a Computer Using PowerShell
Remotely Access HP Laptop Details via PowerShell
System administrators who need to retrieve serial numbers and model information for HP laptops remotely can use PowerShell’s built-in remote management capabilities.
First, enable PowerShell Remoting on the remote HP laptop you want to query following these steps:
- Open the PowerShell console as an administrator
- Run
Enable-PSRemoting -Force - When prompted, enter
Yto allow remote connections
Then, from your local machine, enter a PowerShell command like this to connect to the remote computer and get the HP serial number:
Invoke-Command -ComputerName NAME_OF_REMOTE_PC -ScriptBlock {Get-WmiObject win32_bios | Select SerialNumber}Be sure to replace NAME_OF_REMOTE_PC with the remote HP laptop’s computer name or IP address. As long as both machines are on the same network and PowerShell Remoting is enabled, you will get back the HP serial number of the remote Windows computer.
Conclusion
As you can see, PowerShell provides an easy and efficient way to access key information about your HP laptop, like the serial number and model number. Whether you need these details for warranty service, support, or managing an entire fleet of HP laptops remotely, a couple of simple PowerShell commands are all it takes to find what you need.
In this tutorial, I explained how to check the HP laptop model and serial number 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.