UEZ Posted January 8, 2013 Share Posted January 8, 2013 Tested on those VMs WinXP x86 -> worked Win2000 Server x86 -> worked Vista x64 -> worked Windows Server 2003 x64 -> worked Windows Server 2008 R2 -> worked Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
JFX Posted January 8, 2013 Author Share Posted January 8, 2013 Thanks for conversion and confirming UEZ Link to comment Share on other sites More sharing options...
supersonic Posted January 9, 2013 Share Posted January 9, 2013 (edited) @ JFX + UEZ Thank you both - neat! Edited January 9, 2013 by supersonic Link to comment Share on other sites More sharing options...
NexusCommader Posted April 19, 2013 Share Posted April 19, 2013 My windows 8 product key has the "N" as the first chr of the key so the key would return "N" string replace must work different from VB to autoit I found the bug and fixed If $isWin8 Then Local Const $sKeyPart1 = StringMid($sKeyOutput, 2, $iLast) Local Const $sInsert = "N" If Not $iLast Then $sKeyOutput = $sInsert & StringTrimLeft($sKeyOutput, 1) Else $sKeyOutput = StringReplace(StringTrimLeft($sKeyOutput, 1), $sKeyPart1, $sKeyPart1 & $sInsert, 1) EndIf EndIf if N is first then $iLast = 0 then $sKeyPart1 = "" StringReplace() using "" as search causes it to replace the whole key, end result was returning "N" after my modification key is correct Link to comment Share on other sites More sharing options...
UEZ Posted April 19, 2013 Share Posted April 19, 2013 @NexusCommader: thanks for the update! Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
NexusCommader Posted April 22, 2013 Share Posted April 22, 2013 further to my previous post, I tuned the win8 logic, removing the weird string replace method. If $isWin8 Then $sKeyOutput = StringMid($sKeyOutput,2,$iLast)&"N"&StringTrimLeft($sKeyOutput,$iLast+1) EndIf tested with windows 8 and server 2012 keys, correct Link to comment Share on other sites More sharing options...
JFX Posted April 23, 2013 Author Share Posted April 23, 2013 Thanks NexusCommader! Updated first post. Link to comment Share on other sites More sharing options...
Trong Posted April 25, 2013 Share Posted April 25, 2013 Worked! Thanks! Regards, Link to comment Share on other sites More sharing options...
coffeeturtle Posted April 30, 2013 Share Posted April 30, 2013 JFX et al! Thank you for a great script! My old version of Magic Jellybean was no good. Your script is a great replacement! Love it! Can we throw in Office 2013 into the mix? Perhaps all Adobe products as well? Thank you again! Link to comment Share on other sites More sharing options...
guinness Posted April 30, 2013 Share Posted April 30, 2013 coffeeturtle, Perhaps this could be a nice little exercise for you? Since we are coders here after all. -_0 UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
coffeeturtle Posted April 30, 2013 Share Posted April 30, 2013 @guinness - I was afraid you'd say that. Link to comment Share on other sites More sharing options...
guinness Posted April 30, 2013 Share Posted April 30, 2013 I don't disappoint! UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
JFX Posted April 30, 2013 Author Share Posted April 30, 2013 @coffeeturtle Come on, if you have Office 2013 installed you can try it very easy. Just change the registry key from "HKLMSOFTWAREMicrosoftOffice14.0Registration" to i guess "HKLMSOFTWAREMicrosoftOffice15.0Registration" Link to comment Share on other sites More sharing options...
coffeeturtle Posted April 30, 2013 Share Posted April 30, 2013 Thanks! I will give it a try when I get to my machine with that installation. Link to comment Share on other sites More sharing options...
flappert87 Posted June 9, 2013 Share Posted June 9, 2013 (edited) Case "Office 2013 x86" $RegKey = 'HKLMSOFTWAREMicrosoftOffice15.0Registration' IF @OSArch = 'x64' Then $RegKey = "HKLM64SOFTWAREWow6432NodeMicrosoftOffice15.0Registration" For $i= 1 to 250 $var = RegEnumKey($RegKey, $i) If @error <> 0 then ExitLoop $bKey = RegRead($RegKey & '' & $var, 'DigitalProductID') IF Not @error Then ExitLoop Next $iKeyOffset = 0x328 Case "Office 2013 x64" IF @OSArch <> 'x64' Then SetError(1, 0, "Product not found") $RegKey = 'HKLM64SOFTWAREMicrosoftOffice15.0Registration' For $i= 1 to 250 $var = RegEnumKey($RegKey, $i) If @error <> 0 then ExitLoop $bKey = RegRead($RegKey & '' & $var, 'DigitalProductID') IF Not @error Then ExitLoop Next $iKeyOffset = 0x328 Edited June 9, 2013 by flappert87 Link to comment Share on other sites More sharing options...
JFX Posted June 9, 2013 Author Share Posted June 9, 2013 Thanks flappert87! Added both to first post. Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted September 7, 2013 Share Posted September 7, 2013 (edited) I tested the script on Office 2013 but it gives a wrong result You can check the last five digits with cscript.exe OSPP.VBS /dstatus the script is available in the office installation folder Edited September 7, 2013 by Emiel Wieldraaijer Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
loloplat Posted September 20, 2013 Share Posted September 20, 2013 (edited) Hi. Is it possible to adapt this script to get Windows keys from non-local machines on a business network. Thanks in advance. Edited September 20, 2013 by loloplat Added translation Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 20, 2013 Moderators Share Posted September 20, 2013 loloplat,This is an English speaking forum - please post in English in future. Google Translate is pretty useful. Ici nous sommes anglophone - veuillez poster en anglais dorenavant. Google Translate est tres utile. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JayHawkfl Posted September 20, 2013 Share Posted September 20, 2013 Works like a dream, Showed it to the other programmer at the office, and we're thinking about swapping out the program we use to retreive keys from our remote sites with this. Thanks for your time Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now