MS office product key Retrieval

CraigLazar
CraigLazar used Ask the Experts™
on
Hi,
I have a vb.net 08 app and i need to if possible fetch the MS Office product key from the registry. I have written a small auditing tool that we want to run on a network to report on number of office licenses installed and there Product Id's to identify any duplications

thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014

Commented:
Registration information is stored under the following registry key
HKEY_LOCAL_MACHINE/Software/Microsoft/Office/11/Registration/ProductID
for 2003 and
HKEY_LOCAL_MACHINE/Software/Microsoft/Office/12/Registration/ProductID
for 2007.

Do you need help with retrieving these in VB.NET?

Author

Commented:
hi code cruiser,
yip that would be great thanks, are the values encrypted?

thanks
Most Valuable Expert 2012
Top Expert 2014
Commented:
The value seems to be encrypted. Have a look to see what you can find. Here are few links to help you get started with registry in vb.net

http://www.freevbcode.com/ShowCode.Asp?ID=4487

http://www.vbdotnetheaven.com/UploadFile/mahesh/WindowsRegistry04262005045814AM/WindowsRegistry.aspx

http://www.devasp.net/net/articles/display/155.html
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

Author

Commented:
thanks for the help
Most Valuable Expert 2012
Top Expert 2014

Commented:
Glad to help.

Author

Commented:
yip found a little exe which outputs results to a xml file, so i am going to run that on the fly and read in the results from the xml file. :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial