Account: blocca gli account Microsoft: valore del Registro di sistema NoConnectedUserComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System

Categoria
Impostazioni sicurezza › Criteri locali › Opzioni di sicurezza
Ambito
Configurazione computer
Origine
Windows 11 (versione 26H2 · 26300.9457)

Registro

NoConnectedUser

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Account: blocca gli account Microsoft
Opzioni
VoceValore memorizzato
Questo criterio è disabilitato0
Gli utenti non possono aggiungere account Microsoft1
Gli utenti non possono aggiungere account Microsoft né utilizzarli per effettuare l'accesso3
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System]

; Opzioni (usarne solo una)
; Questo criterio è disabilitato
"NoConnectedUser"=dword:00000000
; Gli utenti non possono aggiungere account Microsoft
"NoConnectedUser"=dword:00000001
; Gli utenti non possono aggiungere account Microsoft né utilizzarli per effettuare l'accesso
"NoConnectedUser"=dword:00000003
CMD
:: Opzioni (usarne solo una)

:: Questo criterio è disabilitato
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 0 /f
:: Gli utenti non possono aggiungere account Microsoft
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 1 /f
:: Gli utenti non possono aggiungere account Microsoft né utilizzarli per effettuare l'accesso
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "NoConnectedUser" /t REG_DWORD /d 3 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# Opzioni (usarne solo una)
# Questo criterio è disabilitato
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 0 -Force | Out-Null
# Gli utenti non possono aggiungere account Microsoft
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 1 -Force | Out-Null
# Gli utenti non possono aggiungere account Microsoft né utilizzarli per effettuare l'accesso
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'NoConnectedUser' -PropertyType DWord -Value 3 -Force | Out-Null