WMI windows serial number changed after update?

Alessandro Casadei 6 Reputation points
2020-12-16T11:20:56.817+00:00

It is possible that the windows serial number finded from ExecQuery(_bstr_t(L"WQL"), _bstr_t(L"Select * from Win32_OperatingSystem"), WBEM_FLAG_ENSURE_LOCATABLE|WBEM_FLAG_RETURN_IMMEDIATELY, 0, &pEnumObject);
return different number on the same machine, after an update?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,695 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Jenny Yan-MSFT 9,336 Reputation points
    2020-12-17T02:28:30.523+00:00

    Hi,
    Yes, per searching there are a number of users updated that the Win32_OperatingSystem.SerialNumber is changing after some windows updates and following blog instructed some certain attributes that are fairly stable:
    Generating a unique ID for a Windows PC
    https://tewarid.github.io/2015/07/30/generating-a-unique-id-for-a-windows-pc.html

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

     

    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.