Jump to content
Sign in to follow this  


Recommended Posts


Hey, does anyone know if it would be possible to get a PC's HWID codes through AutoIt? Thanks in advance.

Share this post

Link to post
Share on other sites

I use this simple code to generate a HWID

#include <string.au3>
MsgBox(64, "", _HWID())

func _HWID()
    $osdrive = StringLeft(@SystemDir, 3)
    $original = "0"&@CPUArch & @KBLayout & DriveGetSerial("C:\") & StringUpper(DriveGetType($osdrive)) & DriveSpaceTotal ($osdrive)
    $string2 = StringMid($original, Round(StringLen($original)/2), Round(StringLen($original)/2))
    $string2_mod = _StringToHex(_StringReverse($string2))
    $original = _StringEncrypt(1, $original, $string2_mod, 4)
    Return $original
Edited by IchBistTod


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.