Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows System GUIDs (not unique) Why? How?

02 Dec 2011   #1
NickRobinson

Windows 7 Ultimate x64
 
 
Windows System GUIDs (not unique) Why? How?

So being an ASS I ass-umed that the system ID that you get when you ask Windows for a system ID is unique and I built a licensing scheme around it. I was wrong.

My system Id is not even close to being unique. Try googling this

{846ee340-7039-11de-9d20-806e6f6e6963}

and you can find it everywhere, usually referred to as a GUID.

What are the chances of that? They should be nil.

Anyone have any clue what is going on with this? Why are windows GUIDs not even close to being unique?

I have searched for an explanation but everyone seems blissfully unaware that they are not the only users of {846ee340-7039-11de-9d20-806e6f6e6963}

Please put me out of my (seemingly unbounded) ignorance.

Cheers,

Nick

EDIT: Check this out

http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

"Globally Unique Identifier" it claims - not even close!


My System SpecsSystem Spec
.
03 Dec 2011   #2
logicearth

Windows 10 Pro (x64)
 
 

Where are you getting this "System ID" GUID is only unique if you generate your own. Otherwise, a lot of systems will have the same GUID for various things like COM objects.

Also on Windows 7, Hardware profiles do not even exist any more. So the above function from MSDN is not going to return anything unique.
My System SpecsSystem Spec
03 Dec 2011   #3
NickRobinson

Windows 7 Ultimate x64
 
 

I'm generating it in the method described in the MSDN article that I linked to. The article was updated quite recently and says it applies to Windows 2000 and above. there is no mention that it is obsolete.

The fact that the
GetCurrentHwProfile

call returns successfully would appear to indicate that this is implemented fully on Windows 7.

Still, thanks for the heads-up. I was already heading in the direction that I might have to do it all myself. I just hope they don't kind-of-but-not-really withdraw more functionality without really saying so in the documentation.

The poor documentation is why I generally try to stay as far away as possible from MS development.

Nick
My System SpecsSystem Spec
.

03 Dec 2011   #4
NickRobinson

Windows 7 Ultimate x64
 
 

Sorry, the idea of the "same GUID" really doesn't make any sense. A unique identifier should be unique. Otherwise it is not a unique identifier.
My System SpecsSystem Spec
03 Dec 2011   #5
logicearth

Windows 10 Pro (x64)
 
 

The function in question still works, however the act of making multiple hardware profiles is not available after Windows Vista, thus the same GUID for the default profile. The GUID that is returned is only an identifier for the current hardware profile not the hardware itself. Nor is it a "System ID" thus uniqueness was not fundamental for its purpose.

For the record, GUID is unique when it is not hardcoded to be the same.
My System SpecsSystem Spec
Reply

 Windows System GUIDs (not unique) Why? How?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows Audio Service Unique behaviour
hi everyone, I am using HP 1000 notebook PC ( Core i3 ) with Windows 7 Ultimate x64. The problem is that when i start my laptop windows give a wellcome sound but after that windows audio service seems to be down because if i play something i can't. Wmp just says cannot play file. So i...
Sound & Audio
Windows crashed on Startup(unique story)
I know it isn't much to go on. But I was playing the Sims 3 on my Acer Laptop(Acer Aspire 5336-2524) and I got a blue screen. Thought nothing of it because of reports of this happening. It didn't happen again for a couple months and it happened again and crashed my laptop. I would boot it up and it...
BSOD Help and Support
Is the windows activation key unique? Subject to change? Where is it?
I was told the Product ID is not unique. Is the Key different? Is it subject to change? And how about a clean install? Am I correct that that is what is found (encrypted) as DigitalProductId in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion?
Windows Updates & Activation
Unique Windows 7 USB flash problem
Hi all, I've a new computer at my work, it's an AMD Phenom II X4 965 @3.4 GHz with 8 GB of RAM and Windows 7 Professional 64 bit on it. I also have a flash drive (Corsair Voyager 4 GB), that has worked perfectly until now. The problem: The first time I plugged in my Corsair, it showed up and...
Hardware & Devices
Virtual Machines and GUIDs / Licensing
Hi. I am not finding a definite answer to this question in my google and microsoft searches. I was hoping somebody here could help me out. I am trying to figure out if I will be able to install and activate Windows 7 on multiple VMs using the same product key on the same physical machine. I...
Virtualization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:23.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App