Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Retrieve HP Product Number

Posted on 2011-03-03
12
Medium Priority
?
1,100 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1600 total points
ID: 35033929
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 16

Assisted Solution

by:sjklein42
sjklein42 earned 400 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
 

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Learn about cloud computing and its benefits for small business owners.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

604 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