Print "HD Serial as Regular User: " + get_hard_drive_serial() Shell.ShellExecuteEx(lpVerb='runas', lpFile=sys.executable, lpParameters=params) Does this script do the same for you aswell? import os Note: For me it outputs exactly the same serial number no matter as a user or as a admin. If "PHYSICALDRIVE" in str(item.Tag).upper():Įdit: A short script that retrieves a users Hard Drive Serial number as a normal process and as an elevated/admin process. The tablet has a standard user who experienced the issue.Īlso is the Hard Drive Serial number the MAC address of the hardware device or something else?Ĭode to obtain the Hard Drive Serial number: c = wmi.WMI() The laptop has an admin user who experienced the issue. The tablet was recently updated from Windows 8 to Windows 8.1 and I noticed that the serial changed after this update.The other computer is an Acer Iconia tablet.Both of these test nodes run Windows 8 Professional.But in our case the error has occurred on an admin user aswell. What could cause such a problem? Is our code that identifies the serial not comprehensive across windows operating systems? I did notice that this post mentions you can get the wrong serial if a standard user process retrieves the serial no. But we haven't changed their hard drive at all. This I believe is a constant feature and will not change unless the user changes their primary physical drive - correct me if I am wrong? We use the WMI python module to obtain the users Hard Drive Serial Number.įor 2 of our test computers the Hard Drive serial number has changed. Our anti-piracy software identifies people according to their Hard Drive Serial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |