Audit Windows Server/Desktop Product Key usage - Super User most recent 30 from 2018-10-16T13:48:39Z 0 Audit Windows Server/Desktop Product Key usage neildeadman 2014-05-29T14:35:06Z 2014-05-31T02:18:18Z <p>The company I work for has a fairly big domain of Windows Desktops and Servers. We also have standalone servers that are remote to our site but we have direct access to.</p> <p>We need to audit our license usage across all Windows machines (including some VMs). I have tried a few products downloaded, but the key returned is not the one used during installation. I have one product that gives the last 5 characters correctly but needs to be installed so its not really suitable.</p> <p>I also have tried some PowerShell scripts <a href="" rel="nofollow noreferrer">one of which is here</a></p> <p>Ideally I am looking for one that can be used over a network and if possible can audit Office keys too.</p> <p>I've just tried Jelly Bean and some other product key tools that all return <code>BBBBB-BBBBB-BBBBB-BBBB-BBBBB</code> as the product key.</p> 0 Answer by Tim Ferrill for Audit Windows Server/Desktop Product Key usage Tim Ferrill 2014-05-31T02:18:18Z 2014-05-31T02:18:18Z <p>I think this will work for your purposes using <a href="" rel="nofollow noreferrer">PSEXEC</a> and <a href="" rel="nofollow noreferrer">Magic Jelly Bean KeyFinder</a>.</p> <p>First we define the folder containing the two executable files, the computer name(s) to target, and set the current location.</p> <pre><code>$exePath = "$env:USERPROFILE\Downloads\PowerShell" $computerName = "somecomputer" Set-Location $exePath </code></pre> <p>Then we run KeyFinder on the remote computer using PSEXEC</p> <pre><code>.\PsExec.exe \\$computerName -c .\keyfinder.exe /savecsv "C:\Users\Public\" -s -accepteula </code></pre> <p>Then we should be able to import the CSV file that we created and gather the key data from that.</p> <pre><code>$keyData = Import-CSV "\\$computerName\c$\Users\Public\$computerName.csv" </code></pre>