![]() My ahk script then calls a php script on my website, which stores the machine ID. its not completely unique, as i've run into a few duplicates, but nothing that really matters. the values are then hashed to give a machine fingerprint. I am protecting my software using some of the old Lazslo code, basically getting a machine fingerprint from the EnvGet variables as well as a CPUinfo() Mcode. depending on the Hash method you may get duplicates so even if you get that "OEM" message, after you Hash it, it will look like gibberish. ![]() You should Hash the value that you get regardless. and only MS can tell us how long that will be. On the other hand, most WMI queries will remain for some time. WMI CmdLets – The top reasons I changed over article (. Whilst PowerShell still supports WMI cmdlets, some WMI classes have been deprecated and I guess this trend will continue. WMI can sometimes be a little flaky, especially now that PowerShell has gained such a foothold (which is why I've been playing with wrapping PowerShell cmdlets in AHK). This way it will catch the active network adaptor and ignore inactive or pseudo/virtual adapters. Similarly, all this means is run a WMI query against all Win32_NetworkAdapterConfiguration collections that have IPEnabled set to True and return the result for the object named MACAddress. ![]() Code: Select all objWMIService := ComObjGet("winmgmts:!\\.\root\cimv2")ĬolItems := objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")._NewEnum
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |