Interaktive Anmeldung: Verhalten beim Entfernen von Smartcards: Registrierungswert ScRemoveOptionComputerHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
- Kategorie
- Sicherheitseinstellungen › Lokale Richtlinien › Sicherheitsoptionen
- Bereich
- Computerkonfiguration
- Quelle
- Windows 11 (Version 26H2 · 26300.9457)
Registrierung
ScRemoveOption
REG_SZComputerHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon Aktueller Schlüssel
- Wert bei Aktivierung
- Hängt vom Wert der Option ab
- Element
- Interaktive Anmeldung: Verhalten beim Entfernen von Smartcards
| Eintrag | Gespeicherter Wert |
|---|---|
| Keine Aktion | 0 |
| Arbeitsstation sperren | 1 |
| Abmeldung erzwingen | 2 |
| Trennen, falls Remotedesktopdienste-Sitzung | 3 |
| Bei Remotedesktopdienste-Remotesitzung trennen, unabhängig von der Anmeldemethode | 4 |
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon] ; Optionen (nur eine verwenden) ; Keine Aktion "ScRemoveOption"="0" ; Arbeitsstation sperren "ScRemoveOption"="1" ; Abmeldung erzwingen "ScRemoveOption"="2" ; Trennen, falls Remotedesktopdienste-Sitzung "ScRemoveOption"="3" ; Bei Remotedesktopdienste-Remotesitzung trennen, unabhängig von der Anmeldemethode "ScRemoveOption"="4"
CMD
:: Optionen (nur eine verwenden) :: Keine Aktion reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 0 /f :: Arbeitsstation sperren reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 1 /f :: Abmeldung erzwingen reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 2 /f :: Trennen, falls Remotedesktopdienste-Sitzung reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 3 /f :: Bei Remotedesktopdienste-Remotesitzung trennen, unabhängig von der Anmeldemethode reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "ScRemoveOption" /t REG_SZ /d 4 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Force | Out-Null # Optionen (nur eine verwenden) # Keine Aktion New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '0' -Force | Out-Null # Arbeitsstation sperren New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '1' -Force | Out-Null # Abmeldung erzwingen New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '2' -Force | Out-Null # Trennen, falls Remotedesktopdienste-Sitzung New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '3' -Force | Out-Null # Bei Remotedesktopdienste-Remotesitzung trennen, unabhängig von der Anmeldemethode New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'ScRemoveOption' -PropertyType String -Value '4' -Force | Out-Null