Skip to content

Commit

Permalink
Update src/SDK/Resource/Detectors/Host.php
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Bachert <[email protected]>
  • Loading branch information
matt-hensley and Nevay authored Mar 27, 2024
1 parent f4ee303 commit 2c653f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDK/Resource/Detectors/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private function getMacOsId(): string

private function getWindowsId(): string
{
$out = exec('%windir%\System32\REG.exe QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography /v MachineGuid');
$out = exec('powershell.exe -Command "Get-ItemPropertyValue -Path HKLM:\SOFTWARE\Microsoft\Cryptography -Name MachineGuid"');

if ($out != false) {
return $out;
Expand Down

0 comments on commit 2c653f3

Please sign in to comment.