01. Como ativar o SMB no Windows
<Digite aqui para pesquisa> Ativar ou desativar recursos do Windows
** Ferramenta “Ativar ou desativar recursos do Windows” <pesquisar>2. <Digite aqui para pesquisa> , digite PowerShell e execute como administrador.
Set - ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” SMB1 - Value 0 -Force
ERRO:
Set-Variable : Não é possível localizar um parâmetro que coincida com o nome de parâmetro 'Path'.
No linha:1 caractere:20
+ Set - ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Lan ...
+ ~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Variable], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.SetVariableCommand
SMB v2 / v3 no servidor SMB
Detectar:
Get-SmbServerConfiguration | Select EnableSMB2Protocol
Permitir:
Set-SmbServerConfiguration -EnableSMB2Protocol $true
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 1 -Force
Registry entry: SMB2
REG_DWORD: 0 = Disabled
REG_DWORD: 1 = Enabled
Default: 1 = Enabled (No registry key is created)
Nenhum comentário:
Postar um comentário