Skip to content

Commit

Permalink
Debug-AzStorageAccountAuth: fix prerequisite check for CheckChannelEn…
Browse files Browse the repository at this point in the history
…cryption (#136)
  • Loading branch information
clin-ms authored Mar 27, 2023
1 parent 1fa26c1 commit 2a9e386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AzFilesHybrid/AzFilesHybrid.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3805,7 +3805,7 @@ function Debug-AzStorageAccountAuth {
$checks["CheckChannelEncryption"].Result = "Skipped"
}

if(!(Get-SmbServerConfiguration).PSobject.Properties.Name -contains "EncryptionCiphers")
if(!((Get-SmbServerConfiguration).PSobject.Properties.Name -contains "EncryptionCiphers"))
{
Write-Verbose -Message "Your operating system does not support the property 'EncryptionCiphers' of the cmdlet 'Get-SmbServerConfiguration'. Please refer to 'https://docs.microsoft.com/en-us/powershell/module/smbshare/set-smbserverconfiguration?view=windowsserver2022-ps'"
$checks["CheckChannelEncryption"].Result = "Skipped"
Expand Down

0 comments on commit 2a9e386

Please sign in to comment.