How to Get HP Laptop Model and Serial Number Using PowerShell?

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:

  1. Click the Start menu and type “PowerShell”
  2. 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 Serialnumber

Press Enter, and PowerShell will display your HP laptop’s serial number, like this example output:

SerialNumber
------------  
5CD25TYCU

As you can see, I executed the above PowerShell cmdlet using VS code, and it displayed the serial number of my HP laptop.

powershell get hp laptop serial number

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 Name

PowerShell 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 hp laptop model using PowerShell

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:

  1. Open the PowerShell console as an administrator
  2. Run Enable-PSRemoting -Force
  3. When prompted, enter Y to 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.

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.