-
This code will give you MS Office product key (no matter if you have 32-bit or 64-bit version of Office XP, Office 2003, or Office 2007). function Search-RegistryKeyValues { param( [string]$path, [string]$valueName ) Get-ChildItem $path -recurse -ea SilentlyContinue | % { if ((Get-ItemProperty -Path...
-
This script will give you a nice object with ComputerName, ProductName (tested on Office and Visio), and ProductKey. Works against the local and a remote computer. You can pass an array of computer names. function Get-MSOfficeProductKey { param ( [ string []] $computerName = "." ) $product...
-
Jakob Bindslet has written a PowerShell script to retrieve the Windows Product Key. Read More