Where MikroTik Winbox (Windows Application) Stores Passwords
Winbox, the Windows application for managing MikroTik devices, stores saved router passwords locally on your Windows system if you select the "Keep Password" option. This makes it possible to back up these credentials, but you need to know the exact file and location.
Password Storage Location
-
File Path:
C:\Users\<yourusername>\AppData\Roaming\Mikrotik\Winbox\settings.cfg.viw
or
C:\Users\<yourusername>\AppData\Roaming\Mikrotik\Winbox\settings.cfg
-
File Content:
The file contains saved router addresses, usernames, and passwords (in cleartext) if "Keep Password" was checked during login. The password is [PASSWORD] next to the pwd keyword, and the username next to login[3][5].
How to Back Up Winbox Passwords
-
Navigate to the Folder:
- Open Windows Explorer.
- Go to:
C:\Users\<yourusername>\AppData\Roaming\Mikrotik\Winbox\
- (You may need to enable "Show hidden files and folders" to see the AppData directory.)
-
Copy the File:
- Copy
settings.cfg.viw (or settings.cfg) to your backup location (USB drive, cloud storage, etc.).
-
Restoring:
- To restore, copy the file back to the same directory on a new or reinstalled Windows system.
Security Note
- The passwords in this file are stored in plain text. Anyone with access to this file can read your router credentials[3][5].
- For additional security, MikroTik recommends using the "Set Master Password" feature in Winbox, which encrypts stored credentials[3][5].
Additional Files
- Addresses.cdb:
Another file in the same directory, Addresses.cdb, may also contain saved addresses and passwords if you have not set a master password[2][4].
Summary Table
| File Name | Location | Contains Passwords? | Notes |
|---|
| settings.cfg.viw | C:\Users<username>\AppData\Roaming\Mikrotik\Winbox\ | Yes (cleartext) | Main file for saved credentials |
| settings.cfg | C:\Users<username>\AppData\Roaming\Mikrotik\Winbox\ | Yes (cleartext) | Alternate/legacy file |
| Addresses.cdb | C:\Users<username>\AppData\Roaming\Mikrotik\Winbox\ | Sometimes | May contain passwords if not protected |
For "The Dude" Application
If you are using MikroTik's "The Dude" application, saved passwords are not stored in the installation directory but likely in a user-specific AppData folder. The exact location may vary, but similar principles apply[1].
In summary:
To back up Winbox-saved passwords, copy the settings.cfg.viw (or settings.cfg) file from your AppData Roaming Winbox folder. Handle this file securely, as it contains your router passwords in plain text[3][5].