Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

MSDN / TechNet Key Importer for KeePass 2

, 25 Jan 2013
Rate this:
Please Sign up or sign in to vote.
If you have an MSDN account and, like me, systematically claim keys just as well as you systematically forget which keys you’ve used in which test environments!

If you have an MSDN account and, like me, systematically claim keys just as well as you systematically forget which keys you’ve used in which test environments! Well, in a meager attempt to help myself track my keys I created an importer for KeePass 2 that takes in the XML document that you can export from MSDN and TechNet. The source is available at https://github.com/svickn/MicrosoftKeyImporterPlugin.

 UPDATE:
GitHub has chosen to deprecate the downloads section for files. Right now, to download the dll you can go to https://github.com/svickn/MicrosoftKeyImporterPlugin/downloads but I will look into options for hosting these files somewhere else in the future.

How do I get my KeysExport.xml from MSDN or TechNet?

Easy! First, in MSDN, go to your product keys.

image

From there, at the top right select Export to XML.

image

This will let you download an XML file full of your Microsoft Keys.

 

How do I import it into KeePass 2?

The instructions are simple and available in the GitHub ReadMe.md, so I won’t repeat them. Here is a screenshot of what the imported result looks like:

SNAGHTML35928f0e

 

As you can see, the import process creates a group called Microsoft Product Keys and creates a subgroup for each product. The individual entries each represent an individual key, stored in the password field. The importer decides if a key is new based on the key stored in the password, so you can edit the notes or title for the individual entries however you please without worrying about them being overwritten or duplicated if you re-import an updated KeysExport.xml from MSDN! This lets you keep track of where those pesky keys are in use and have the keys available anywhere you can access your KeePass database!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Stacy Vicknair
Software Developer
United States United States
Stacy is a VB.NET developer with over two years experience in Microsoft Development. His experiences include Visual FoxPro 9, VB6, VB.NET for frameworks 1.1, 2.0, and 3.5.
 
Stacy maintains the blog http://www.wtfnext.com on VB.NET technologies and his personal life, and he is active in the Baton Rouge and Second Life DNUGs.

Comments and Discussions

 
SuggestionEnhancements Pinmemberrobert08152-Feb-13 2:52 
Good job - nice little tool!
 
Would it be possible to enhance your tool with following functions/behaviours?
* ClaimDate instead of CreationDate
* If Key is CDATA leave Key empty (or "see comment")
 
Also could you support the old keyfile-Format? Example:
<?xml version="1.0" standalone="yes"?>
<Your_Product_Keys>
  <Product_Key_Name display_name="Visio Professional 2003" Key="...." Date_Key_Claimed="2005-04-08 05:40:00.000" />
</Your_Product_Keys>
 
Thank you!

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 25 Jan 2013
Article Copyright 2013 by Stacy Vicknair
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid