Command Line to Allow a Smart Card to be Removed without Locking the Computer.

This command line allows me to log into and work on several machines by preventing them from locking after the smart card is removed. However, I have to re-insert the smart card temporarily when I access resources that require further authentication.

c:\windows\system32\cmd.exe /k %windir%\system32\reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v scremoveoption /t REG_DWORD /d 0 /f