sorry. it's a repeated question;
I want to get bios serial number.
I had a code, and it worked, but unfortunatlly NOT now!
maybe because of new version of delphi (7), or WindowsXP, or my hardware! I don't know.
here is my code:
function GetBiosInfoAsText: string;
var
P, Q: PAnsiChar;
begin
Q := nil;
P := PChar(Ptr($FE000));
repeat
if Q <> nil then begin
if not (P^ in [#10, #13, #32.#126, #169, #184]) then begin
if (P^ = #0) and (P - Q >= 8) then begin
Result := Result + TrimRight(string(Q)) + #13#10;
end;
Q := nil;
end;
end else
if P^ in [#33.#126, #169, #184] then
Q := P;
Inc(P);
until P > PChar(Ptr($FFFFF));![Bios Serial Number Bios Serial Number](/uploads/1/2/4/6/124615949/460388924.jpg)
Result := TrimRight(Result);
end;
I will thank you for your attention.
I want to get bios serial number.
I had a code, and it worked, but unfortunatlly NOT now!
maybe because of new version of delphi (7), or WindowsXP, or my hardware! I don't know.
here is my code:
function GetBiosInfoAsText: string;
var
P, Q: PAnsiChar;
begin
Q := nil;
P := PChar(Ptr($FE000));
repeat
if Q <> nil then begin
if not (P^ in [#10, #13, #32.#126, #169, #184]) then begin
if (P^ = #0) and (P - Q >= 8) then begin
Result := Result + TrimRight(string(Q)) + #13#10;
![Serial Serial](/uploads/1/2/4/6/124615949/494698788.jpg)
Q := nil;
end;
end else
if P^ in [#33.#126, #169, #184] then
Q := P;
Inc(P);
until P > PChar(Ptr($FFFFF));
![Bios Serial Number Bios Serial Number](/uploads/1/2/4/6/124615949/460388924.jpg)
Result := TrimRight(Result);
end;
I will thank you for your attention.
I intend to use the users BIOS/Motherboard Serial Number to uniquely identify a user. When I refer to the BIOS/Motherboard Serial Number I am referring to the number returned when you type in:
wmic BIOS get SerialNumber
Regarding the BIOS/Motherboard' Serial Number: Black ops 3 custom zombies download.
- Can the user change this serial number? Either using third party applications or through Windows.
- According to this forum post, not all vendors supply a motherboard
UUID
so I cannot use this to uniquely identify the user. Do venders mostly/always supply/fill out the BIOS/Motherboard Serial Number or will I also find some computers dont have a serial number? - I have tried to uniquely identify a user using the Hard Drive's Serial Number. But I have first hand run into the issue that it can change and that Windows API is unreliable and can return different values. See my post here. Do you know if I may experience the same issue for the BIOS/Motherboard's Serial Number?
- Can a standard process (Standard Windows User) retrieve the BIOS/Motherboard Serial Number? Or does the process need to be elevated (Admin User)?
Just to confirm the BIOS is the motherboard, correct? I am a little unclear because I thought the BIOS is the simple software installed on the motherboard.
Community♦
sazrsazr
1 Answer
- Yes, a power user can change nearly all serial numbers using either service utilities like AMI DMIEdit or by editing BIOS chip contents manually.
- Most desktop motherboards right now are coming with empty MBSN and UUID, except for ASUS ones. The only PCs that almost always have valid identification data are branded ones (i.e. Dell or HP workstations).
- Nearly all 'individual' data can be changed somehow, and virtual devices makes the whole situation even more complex.
- It depends on how you will try to access it, but general answer is 'No, you need administrator rights'. Read more here.
My 5 cents on this: just don't use HW-based identification, it brings more problems then solves.
CodeRushCodeRush