Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sumitsaiwal/a11a4bcf4f6cc66314a92438a757da57 to your computer and use it in GitHub Desktop.
Save sumitsaiwal/a11a4bcf4f6cc66314a92438a757da57 to your computer and use it in GitHub Desktop.
Docker for Windows: Shared Drives Issue
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceAlias "vEthernet (DockerNAT)" -NetworkCategory Private
##keep this running for Decryption
while ($true)
{
   if ($(Get-SmbServerConfiguration).EncryptData)
   {
       Write-Host("$(Get-Date): Encryption enabled - calling Set-SmbServerConfiguration -Force -EncryptData 0")
       Set-SmbServerConfiguration -Force -EncryptData 0
   }

   Start-Sleep -Seconds 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment