Solved

Retrieve HP Product Number

Posted on 2011-03-03
12
1,052 Views
Last Modified: 2012-05-11
http://www11.itrc.hp.com/service/ewarranty/warrantyInput.do?admit=109447626+1299217646022+28353475

I am planning to use the HP link above to get the HP Warranty.
I will have to enter Serial Number and Product Number.
I can get the Serial number for all my  computers but cannot get the Product Number.
is there any script that I can run to retrieve the Product number for my HP computers?
Most of my computers are running Windows OS .

Thanks
0
Comment
Question by:jskfan
  • 6
  • 5
12 Comments
 
LVL 16

Expert Comment

by:sjklein42
ID: 35033908
I don't have any to try it on, but I got this info of the web:

There are 3 different registry keys depending on the type of HP machine you have. Look in all three places.

KEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\HardwareDescription\ProductNumber

HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS\SystemSKU

HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\System Properties\productnumber


http://community.spiceworks.com/topic/100054
0
 

Author Comment

by:jskfan
ID: 35033925
Which script do you use to retrieve it?
0
 
LVL 8

Accepted Solution

by:
afthab earned 400 total points
ID: 35033929
0
 
LVL 16

Assisted Solution

by:sjklein42
sjklein42 earned 100 total points
ID: 35033944
In a DOS batch file, there is the "REG" command.   (REG /HELP in a command window to see options)

Try these.  One or more should give interesting output.   We can discuss extracting the info you need from the output once we have it raw.

reg query KEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\HardwareDescription\ProductNumber

reg query HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS\SystemSKU

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\System Properties\productnumber

reg query KEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\HardwareDescription /v ProductNumber

reg query HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS /v SystemSKU

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\System Properties /v productnumber

Open in new window

0
 

Author Comment

by:jskfan
ID: 35034087
afthab:
http://partsurfer.hp.com/
http://h20000.www2.hp.com/bizsupport/TechSupport/WarrantyLookup.jsp?country=US&prodSeriesId=454811&prodTypeId=12454

these 2 above links are very helpful. Thanks a lot



sjklein42:
how do you use your reg query script to retrieve the info?
do put all the commands in a batch file and run it? does the info get displayed on the screen?

0
 
LVL 16

Expert Comment

by:sjklein42
ID: 35034116
Yes, put all the commands in a batch file and run it.

and Yes, the info get displayed on the screen.

Put those lines into a batch file ( getProdNum.bat ).

Run it from inside a DOS command window.  The output is shown in that window.  We can save it to a file if that is easier.

 If you post the output here I can help filter out the noise once we see what it looks like.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:jskfan
ID: 35080712
C:\>reg query KEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\HardwareDescription\Pro
ductNumber

Error:  Invalid key name

C:\>reg query HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS\SystemSKU

Error:  The system was unable to find the specified registry key or value

C:\>reg query HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\System Properties\prod
uctnumber

Error:  Invalid command-line parameters

C:\>reg query KEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\HardwareDescription /v
ProductNumber

Error:  Invalid key name

C:\>reg query HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS /v SystemSKU

Error:  The system was unable to find the specified registry key or value

C:\>reg query HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\System Properties

Error:  Invalid command-line parameters

C:\>



0
 

Author Comment

by:jskfan
ID: 35080717
that was what I got when I ran it from DOS
0
 
LVL 16

Expert Comment

by:sjklein42
ID: 35081350
Well that didn't find anything.

Please try this set of commands.  I fixed a few problems.  Maybe it will find something this time.


reg query "HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS" /v SystemSKU
reg query "HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS\SystemSKU"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\HardwareDescription" /v ProductNumber
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\HardwareDescription\ProductNumber"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\System Properties" /v productnumber
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett-Packard\System Properties\productnumber"

Open in new window

0
 

Author Comment

by:jskfan
ID: 35093257
it shows nothing....
the same commands go in a loop in the screen...

Did you try it on your computer? did it work for you?
0
 
LVL 16

Expert Comment

by:sjklein42
ID: 35093291
Hi.

I don't have any HP PCs so those registry keys are not on my machines.  I was going by the info on this page:

http://community.spiceworks.com/topic/100054

The only thing I can suggest at this point is to run regedit and Search the entire registry for "Hewlett-Packard" to see if there even is such a key on your HP machines.

I am pretty sure the HP registry entries won't be there unless you have the HP-OEM version of the OS.
0
 

Author Closing Comment

by:jskfan
ID: 35100114
excellent
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration, of the HP EVA 4400 SAN Storage. The name , IP and the WWN ID’s used here are not the real ones. ABOUT THE STORAGE For most of you reading this, you …
Usually shares are where we want them for our users and we tend to take them for granted. There are times, however, when those shares may disappear causing difficulty for your users. One of the first things to try is searching for files that shou…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now