Acesso à rede: compartilhamentos acessíveis anonimamente: valor do Registro NullSessionSharesComputadorHKLM\System\CurrentControlSet\Services\LanManServer\Parameters

Categoria
Configurações de segurança › Políticas locais › Opções de segurança
Escopo
Configuração do Computador
Fonte
Windows 11 (versão 26H2 · 26300.9457)

Registro

NullSessionShares

REG_MULTI_SZComputador
Valor habilitado
Depende do valor da opção
Elemento
Acesso à rede: compartilhamentos acessíveis anonimamente
Tipo de valor
REG_MULTI_SZ
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters]

; Dados hex(2) e hex(7) devem ser escritos em hexadecimal (UTF-16LE)
"NullSessionShares"=hex(7):<inserir valor>
CMD
reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "NullSessionShares" /t REG_MULTI_SZ /d "<inserir valor>" /f
PowerShell
New-Item -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\LanManServer\Parameters' -Name 'NullSessionShares' -PropertyType MultiString -Value '<inserir valor>' -Force | Out-Null