We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5306609 commit 6588d91Copy full SHA for 6588d91
machineid/__init__.py
@@ -86,7 +86,7 @@ def id(winregistry: bool = True) -> str:
86
elif platform in ('win32', 'cygwin', 'msys'):
87
if winregistry:
88
id = __reg__(r'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography', 'MachineGuid')
89
- else:
+ if not id:
90
id = __exec__("powershell.exe -ExecutionPolicy bypass -command (Get-CimInstance -Class Win32_ComputerSystemProduct).UUID")
91
if not id:
92
id = __exec__('wmic csproduct get uuid').split('\n')[2] \
0 commit comments