Listing your XML product keys from MSDN – Part 2
Thursday, October 11th, 2007In the last post we we’re playing around with how to extract a Product Key from an MSDN exported XML document. We’ll take this a step further today and see if we turn it into something a little more useful.
Building on the previous script, we want to list the products that match our search criteria [...]
Listing your XML product keys from MSDN
Tuesday, October 9th, 2007I’m lucky enough to have an MSDN subscription at work. If you’re familiar with this service, you will know that when you request a Product Key, there is an option to download it in XML format.
One of my favourite things with PowerShell, is how it handles XML.
$msdn = Get-Content MSDN-Sample-ProdKeys.xml
$msdn.Your_Product_Keys.Product_Key.Count
$product = read-host "what product are [...]
PowerShell and XML
Thursday, March 1st, 2007By far, for me, the most useful feature I’ve found in PowerShell is how easy it is to manipulate XML documents. I’ve written VBScripts in the past that extracted data from XML, performed a task, and then updated the XML document when it was done.
Now, personally I found this quite a tricky task. Let [...]