Solved

Retrieve HP Product Number

Posted on 2011-03-03
12
1,056 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Hyper-convergence systems have taken the IT world by storm and have quickly started to change our point of view of how the data center should and could be architected. In this article, I’ll explain the benefits of employing a hyper-converged system …
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

15 Experts available now in Live!

Get 1:1 Help Now