Accesso interattivo: funzionamento rimozione smart card: valore del Registro di sistema ScRemoveOptionComputerHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

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

Registro

ScRemoveOption

REG_SZComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Accesso interattivo: funzionamento rimozione smart card
Opzioni
VoceValore memorizzato
Nessuna operazione0
Blocca workstation1
Imponi disconnessione2
Disconnetti se in sessione remota Servizi Desktop remoto3
Disconnetti in caso di sessione remota di Servizi Desktop remoto, indipendentemente dal metodo di accesso4
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]

; Opzioni (usarne solo una)
; Nessuna operazione
"ScRemoveOption"="0"
; Blocca workstation
"ScRemoveOption"="1"
; Imponi disconnessione
"ScRemoveOption"="2"
; Disconnetti se in sessione remota Servizi Desktop remoto
"ScRemoveOption"="3"
; Disconnetti in caso di sessione remota di Servizi Desktop remoto, indipendentemente dal metodo di accesso
"ScRemoveOption"="4"
CMD
:: Opzioni (usarne solo una)

:: Nessuna operazione
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 0 /f
:: Blocca workstation
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 1 /f
:: Imponi disconnessione
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 2 /f
:: Disconnetti se in sessione remota Servizi Desktop remoto
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 3 /f
:: Disconnetti in caso di sessione remota di Servizi Desktop remoto, indipendentemente dal metodo di accesso
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 4 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Force | Out-Null

# Opzioni (usarne solo una)
# Nessuna operazione
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '0' -Force | Out-Null
# Blocca workstation
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '1' -Force | Out-Null
# Imponi disconnessione
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '2' -Force | Out-Null
# Disconnetti se in sessione remota Servizi Desktop remoto
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '3' -Force | Out-Null
# Disconnetti in caso di sessione remota di Servizi Desktop remoto, indipendentemente dal metodo di accesso
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '4' -Force | Out-Null