Solved

Retrieve HP Product Number

Posted on 2011-03-03
12
1,061 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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
 

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

773 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