
Windows login with a NFC card / NFC tag
An NFC chip, for example in an NFC card or an NFC fob, can be used to log in to a Windows PC / laptop. This saves having to enter the password manually each time you log in. The programme remembers the UID of your NFC tag and can authenticate you in this way.
In this article, we explain how this process can be created using the CodeB Credential Provider software.
Please note that the software is only free for 30 days. You can find more information about the prices here.
Content:
- Supported NFC chips
- Requirements
- Installation and setup of CodeB Credential Provider
- Log in with the NFC tag
- Lock screen or log out user via NFC
- Switch between credential providers
Supported NFC chips
An NFC tag is required to log in and lock a local Windows user. According to the software manufacturer, various NFC tags and NFC chips are supported. These include NFC tags, NFC stickers, NFC cards such as student ID cards, credit cards, hotel cards and NFC chips from MIFARE, DESFIRE and many more.

Requirements
The following requirements must be met before configuration:
- An NFC tag is available
- Windows Vista, 7, 8, 8.1, 10 and 11 (more recent versions recommended)
- NFC reader available and connected
You must also have set a password in your local Windows account. You can set this in Windows Logo → Your Name → Change account settings → Login Options → Password.


Installation and setup of CodeB Credential Provider
Go to the website https://www.win-logon.com/nfc-logon-de/ and scroll down until you reach ‘Register CodeB Credential Provider’. Now click on Download System Tray. Then unpack the zip file on your PC (see Fig. 1).
Open codeb_tray.exe as administrator (see Fig. 2).
Right-click on the application icon in the taskbar. Then select Login information provider → NFC-Login (see Fig. 3).
The configuration window then opens (see Fig. 4).
Configuration in the configuration window
- Select your NFC reader and hold your NFC tag (card, tag, etc.) up to your NFC reader. The ‘Card number’ and ‘Card reader’ fields are then filled in automatically and the remaining fields can be changed. 2nd User Name field: Enter the Windows user name of the desired user here (for Microsoft accounts this is usually the first name, you can also find this under the Windows folder on your own PC under Windows C: User) (see Fig. 5)
- Password Field: Enter the password of your Windows account here.
- Then click on Connect card, a success message should then appear.





Log in with the NFC tag
Log out of your Windows account. Now select CodeB as the login option. Then scan your card.
After the scan, a login button should appear, which can be clicked without entering an additional password!



Lock screen or log out user via NFC
It may be desirable to put the PC into standby mode when leaving with the same NFC card or to log out completely. An action can be selected when adding or editing the NFC login so that a user can also log out when their NFC login tag is scanned.
There is a choice of Disconnect session to return to the lock screen and Log out session to log the user out. If one of the actions is set during configuration, it is easy to use the NFC tag to log out/lock the screen as soon as the card is placed on the reader while the PC is in use.
Actions:
Nothing = Can only be used for login
Disconnect session = Used to log in and enter standby mode
Log out session = Used to log in and log out the user
There is no action that can only be used to log out but not to log in.
Selection when creating a new token
Selection when editing a token
Switch between credential providers
During Windows logon, users can easily switch between the standard Windows credential provider and the CodeB credential provider. It is also recommended to always have at least one standard Windows credential provider available in addition to a third-party credential provider such as CodeB.
Summary
In this article, we have explained how an NFC tag can be used to simplify logging in to a Windows system. The login data is stored once on the NFC tag. The user can then log in with this NFC tag just by contact with an NFC reader.
This process only works for a local user with a password.
First published: 06.09.2023 / Updated: 21.01.2025 2023-09-06 2025-01-21