Try this to retrieve key from an offline windows #include <Array.au3> ;Local Windows ;~ $keys = _DecodeProductKeys() ;Offline Windows $var = FileSelectFolder("Choose an offline Windows folder.", "") If @error Then Exit $keys = _DecodeProductKeys($var) If @error Then MsgBox(16, 'Error', $keys) Else _ArrayDisplay($keys, "Retrieved Windows Keys") EndIf Func _DecodeProductKeys($Offline = False) Local $Array[9][2], $BinaryDPID, $KeyPos = 0x34 * 2 + 3, $RegKey, $i, $var,