From 36fd203a888a8104d7dc9b50f98e88de72d3bffc Mon Sep 17 00:00:00 2001 From: silversword411 Date: Wed, 7 Jul 2021 16:00:48 -0400 Subject: [PATCH] Updating which registry tree to query --- scripts/Win_Screenconnect_GetGUID.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Win_Screenconnect_GetGUID.ps1 b/scripts/Win_Screenconnect_GetGUID.ps1 index e304a1fb..518278eb 100644 --- a/scripts/Win_Screenconnect_GetGUID.ps1 +++ b/scripts/Win_Screenconnect_GetGUID.ps1 @@ -21,7 +21,7 @@ if (!$ErrorCount -eq 0) { } -$imagePath = (Get-Item -Path HKLM:\SYSTEM\ControlSet001\Services\$serviceName).GetValue('ImagePath') +$imagePath = (Get-Item -Path HKLM:\SYSTEM\CurrentControlSet\Services\$serviceName).GetValue('ImagePath') $imagePath2 = ($imagePath -split "&s=")[1] $machineGUID = ($imagePath2 -split "&k=")[0] Write-Output $machineGUID