Read Windows Keys from Registry (FOG Client)

  • Hi,

    there are popular tools out there, PDQ Inventory or Spiceworks that can extract the Windows Keys from the Registry.
    Is there a way to extend the FOG Client to read the Keys and Report it back to FOG so it can add it automatically to the host?

    Maybe the popular tool Produkey from Nirsoft can be used for this:

    ProduKey.exe /WindowsKeys 1 /OfficeKeys 0 /IEKeys 0 /SQLKeys 0 /ExchangeKeys 0 /ExtracEdition 0 /sjson key.json
    "Product Name":"Windows 10 Pro",
    "Product ID":"00330-80000-00000-AA447",
    "Installation Folder ":"C:\\Windows",
    "Service Pack":"",
    "Computer Name":"XXX",
    "Modified Time":"10.03.2017 17:05:21"

    FOG Client, could check this once a day and report the product key back to the fog db.

    Could be really useful when updating older Windows 7 Clients to Windows 10, i could rollout the FOG Client to that machines for example with PDQ Deploy, then i will recieve current Windows 7 Key and can Deploy Windows 10 :)

    I have also a binary to read out the Windows 8/8.1/10 key from bios:,10366557

    I am using it with the following script to deploy it as snapin, that way all bios embedded keys will be activated after deployment

    @echo off
    for /f "tokens=*" %%i in ('%cd%\oemkey') do set oemkey=%%i
    cscript %systemroot%\system32\slmgr.vbs /ipk %oemkey% >nul
    cscript %systemroot%\system32\slmgr.vbs /ato >nul

    Alternative with Administrative Powershell (only BIOS Keys):

    (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

    Regards X23

  • Senior Developer

    @x23piracy the client certainly has the capability to do what you’re asking, infact it already has the internal API built to manage the Window’s registry. However, this is definitely beyond the scope of what we’re will to add to 1.X due to the needed server changes. With that said, this would be a fairly straight forward FOG 2.0 plugin, when its ready.

    In the mean time, like you already said, snapins are your best bet.

Log in to reply

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.