How to set a password on a DayZ server
Lock joins with password in serverDZ.cfg. Who does not know the password stays out. passwordAdmin is a different field. Windows step-by-step over RDP.

You already have the dedicated server running and want only people who know the password to join. In DayZ that is not a panel button: it is the password field in serverDZ.cfg. By the end of this guide, anyone who types the wrong password in the client stays out.
This is not the RDP password, not the hosting panel password, and not passwordAdmin. It is only the game join lock.
Where the password lives
File C:\DayZServer\serverDZ.cfg, password line. Do not touch types.xml, BattlEye, or the executable shortcut.
Step by step
- On Remote Desktop, close the DayZServer_x64.exe window (or end the process in Task Manager).
- Open C:\DayZServer\serverDZ.cfg in Notepad.
- Find the line password = ""; (or with an old value).
- Put the password between the quotes. No spaces around =. End with a semicolon.
- Save the file (Ctrl+S).
- Start the server again with the same start command you already use.
password = "change-this-password";How to verify
- In the DayZ client: Direct Connect → machine IP → port 2302.
- The game asks for the password. Type the one you saved: you should join.
- Ask a friend to try without the password (or with the wrong one): they should be refused.
If it failed
- Server will not start → missing ; at the end of the line or unclosed quotes.
- Joins without asking for a password → saved the wrong file or did not restart the process.
- Confused with passwordAdmin → that field is not asked at join time.
Frequently asked questions
Straight answers before you order
You may also like
How to create a DayZ dedicated server on Windows
From scratch on Windows: RDP, SteamCMD (223350), what appears in C:\DayZServer, serverDZ.cfg, firewall and the start command. Then links for password, admin, map and mods.
Samuel Akires
How to set a password on a DayZ server
Lock joins with password in serverDZ.cfg. Who does not know the password stays out. passwordAdmin is a different field. Windows step-by-step over RDP.
Samuel Akires
How to change the DayZ server name
The name on the list is hostname in serverDZ.cfg. Stop the server, edit, restart and check on Direct Connect or the list.
Samuel Akires
How to change maxPlayers on a DayZ server
maxPlayers in serverDZ.cfg sets the player cap. A high number with little RAM makes loot and vehicles heavy. Adjust, restart and check.
Samuel Akires
