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_DWORDComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Account: blocca gli account Microsoft
| Voce | Valore memorizzato |
|---|---|
| Questo criterio è disabilitato | 0 |
| Gli utenti non possono aggiungere account Microsoft | 1 |
| Gli utenti non possono aggiungere account Microsoft né utilizzarli per effettuare l'accesso | 3 |
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