Skip to content

Commit

Permalink
Merge pull request #1789 from microsoft/lusassl-HCreplaceWrongQuotes
Browse files Browse the repository at this point in the history
Replace wrong quotes in HC Get-HealthCheckerData function
  • Loading branch information
dpaulson45 authored Aug 4, 2023
2 parents fb01fbb + 471081f commit f9ea461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Diagnostics/HealthChecker/Features/Get-HealthCheckerData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function Get-HealthCheckerData {
}

Invoke-Command -ComputerName $ComputerName -ScriptBlock { Get-Date } -ErrorAction Stop | Out-Null
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(LocalMachine, $ComputerName)
$reg.OpenSubKey(SOFTWARE\Microsoft\Windows NT\CurrentVersion) | Out-Null
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine", $ComputerName)
$reg.OpenSubKey("SOFTWARE\Microsoft\Windows NT\CurrentVersion") | Out-Null
Write-Verbose "Returning true back"
return $true
} catch {
Expand Down

0 comments on commit f9ea461

Please sign in to comment.