Softwarelicensingservice

12 Aug 2019 | Windows 10

Recently I got a question about Embedded License tricks for Windows client OS systems.

You watching: Softwarelicensingservice

These are devices via a Windows license key installed in the BIOS.If you install Windows on a device through an embedded crucial, it will certainly automatically install this vital and also activate it.

Tright here are numerous means to acquire the Initial License Key from a Windows machine.Powershell (PS);Command Prompt (CMD);Windows Scripting Host (VBS).

But tbelow is a small trouble right here. The crucial is stored as an encrypted regisattempt essential. With the initially three devices this is not a difficulty, but through Windows 7 just the last tool, vbs scripting, is feasible.And then we need to carry out a little conversionI will certainly show how!

Powershell (PS)Open an bureaucratic Powershell windows and also type:(Get-WmiObject -query ‘choose * from SoftwareLicensingService’).OA3xOriginalProductKey

Windows Scripting Host (VBS)
If you run these commands in a pre-Windows 10 setting then you acquire a empty result!But the key will still be tbelow, if you have a activated device.This deserve to come in extremely handy through CMDB or various other inventarisation functions.

So wright here is it and just how to handle this?

This script reads the Registry key and converts this to the correct format.You will certainly obtain the product Key which is mounted on that system! GOOD


Set oShell = CreateObject(“WScript.Shell”)Set oFSO=CreateObject(“Scripting.FileSystemObject”)

outFile=”C:TempKey.txt”Set oData = oFSO.CreateTextFile(outFile, True)oDocuments.Write ConvertToKey(oCovering.RegRead(“HKLMSOFTWAREMicrosoftWindows NTCurrentVersionDigitalProductId”)) & vbCrLfoDocuments.Close

Function ConvertToKey(Key)

Const KeyOffcollection = 52i = 28Chars = “BCDFGHJKMPQRTVWXY2346789”

DoCur = 0x = 14

DoCur = Cur * 256Cur = Key(x + KeyOffset) + CurKey(x + KeyOffset) = (Cur 24) And 255Cur = Cur Mod 24x = x -1

Loop While x >= 0i = i -1KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput

If (((29 – i) Mod 6) = 0) And (i -1) Theni = i -1KeyOutput = “-” & KeyOutputEnd If

Loop While i >= 0ConvertToKey = KeyOutputEnd Function

Happy Reading tricks.

See more: Hdd Password Frozen Hard Drive Password Problem Solved, Hard Drive Locked (Enter Hdd Password)


Share this:


Like this:


Like Loading...

Related


Leave a ReplyCancel reply


This site offers Akismet to reduce spam. Discover just how your comment information is processed.


« How-to: Fix Windows Update error 0xca00a000
Windows Update error 0x8007422 »

Subscribe to Blog by means of Email


Enter your email deal with to subscribe to this blog and obtain notifications of new posts by email.


Email Address

Subscribe

Follow me on Twitter

My Tweets

Blogsites


Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To uncover out more, including exactly how to regulate cookies, check out here:Cookie Policy

© 2021 Stephan jiyuushikan.org — All Rights Reoffered.

See more: 8.1 Enterprise - What Is Windows 8


Sfinish to Email AddressYour NameYour Email Address
*
Cancel
Article was not sent out - inspect your email addresses!
Email examine failed, please attempt again
Sorry, your blog cannot share posts by email.
%d bloggers like this: