Skip to content

Minor fixes and logging improvements to AzFilesHybrid debug cmdlet#299

Merged
MaximeKjaer merged 8 commits intoAzure-Samples:masterfrom
MaximeKjaer:minor-debug-fixes
Feb 5, 2026
Merged

Minor fixes and logging improvements to AzFilesHybrid debug cmdlet#299
MaximeKjaer merged 8 commits intoAzure-Samples:masterfrom
MaximeKjaer:minor-debug-fixes

Conversation

@MaximeKjaer
Copy link
Copy Markdown
Collaborator

  • Clean up how things are printed in debug cmdlet
  • Fix CheckEntraObject for lowercase cifs, and improve printing as well
  • Fix Test-IsCloudKerberosTicketRetrievalEnabled for empty Intune folder
  • Fix syntax in CheckServerSupportedEncryptionTypes

Copy link
Copy Markdown
Collaborator

@MarcosJLR MarcosJLR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with a minor comment

Comment on lines 4466 to 4475
$path = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters\CloudKerberosTicketRetrievalEnabled"
$regKeyFolder = Get-ItemProperty -Path Registry::HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters -ErrorAction SilentlyContinue

if ($null -eq $regKeyFolder) {
if ($null -eq $regKeyFolder -or
$null -eq $regKeyFolder.CloudKerberosTicketRetrievalEnabled)
{
Write-Verbose "$path not found."

$path = "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters\CloudKerberosTicketRetrievalEnabled"
$regKeyFolder = Get-ItemProperty -Path Registry::HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters -ErrorAction SilentlyContinue
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Could we reuse $path to call Get-ItemProperty? Maybe we could separate in $path and $regValueName

@MaximeKjaer MaximeKjaer merged commit f044a59 into Azure-Samples:master Feb 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants