Cuentas: bloquear cuentas Microsoft: valor del Registro NoConnectedUserEquipoHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
- 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
NoConnectedUser
REG_DWORDEquipo- Valor al habilitar
- Depende del valor de la opción
- Elemento
- Cuentas: bloquear cuentas Microsoft
| Elemento de lista | Valor almacenado |
|---|---|
| Esta directiva está deshabilitada | 0 |
| Los usuarios no pueden agregar cuentas Microsoft | 1 |
| Los usuarios no pueden agregar cuentas Microsoft ni iniciar sesión con ellas | 3 |
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] ; Opciones (usar solo una) ; Esta directiva está deshabilitada "NoConnectedUser"=dword:00000000 ; Los usuarios no pueden agregar cuentas Microsoft "NoConnectedUser"=dword:00000001 ; Los usuarios no pueden agregar cuentas Microsoft ni iniciar sesión con ellas "NoConnectedUser"=dword:00000003
CMD
:: Opciones (usar solo una) :: Esta directiva está deshabilitada reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 0 /f :: Los usuarios no pueden agregar cuentas Microsoft reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 1 /f :: Los usuarios no pueden agregar cuentas Microsoft ni iniciar sesión con ellas reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 3 /f
PowerShell
# Común: crear la clave New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null # Opciones (usar solo una) # Esta directiva está deshabilitada New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 0 -Force | Out-Null # Los usuarios no pueden agregar cuentas Microsoft New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 1 -Force | Out-Null # Los usuarios no pueden agregar cuentas Microsoft ni iniciar sesión con ellas New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 3 -Force | Out-Null