Acceso a redes: recursos compartidos accesibles anónimamente: valor del Registro NullSessionSharesEquipoHKLM\System\CurrentControlSet\Services\LanManServer\Parameters

Categoría
Configuración de seguridad › Directivas locales › Opciones de seguridad
Ámbito
Configuración del equipo
Origen
Windows 11 (versión 26H2 · 26300.9457)

Registro

NullSessionShares

REG_MULTI_SZEquipo
Valor al habilitar
Depende del valor de la opción
Elemento
Acceso a redes: recursos compartidos accesibles anónimamente
Tipo de valor
REG_MULTI_SZ
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Los datos hex(2) y hex(7) deben escribirse en hexadecimal (UTF-16LE)
"NullSessionShares"=hex(7):<introducir valor>
CMD
reg add "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters" /v "NullSessionShares" /t REG_MULTI_SZ /d "<introducir 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 '<introducir valor>' -Force | Out-Null