# How to Set Up Admin and RCON on Your DayZ Server (/docs/dayz/admin-setup)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Set the Admin Password [#set-the-admin-password]

<Steps>
  <Step>
    Stop the server [#stop-the-server]

    In the [XGamingServer Panel](https://panel.xgamingserver.com), go to **Console** and stop the server.
  </Step>

  <Step>
    Edit serverDZ.cfg [#edit-serverdzcfg]

    Click **Files** in the sidebar and open `serverDZ.cfg`. Set:

    ```
    passwordAdmin = "YourAdminPassword";
    ```
  </Step>

  <Step>
    Save and start [#save-and-start]

    Click **Save Content** and start from **Console**.
  </Step>
</Steps>

In-Game Admin Commands [#in-game-admin-commands]

Once connected, open chat and type `#login YourAdminPassword` to authenticate. Available commands:

| Command             | Description                     |
| ------------------- | ------------------------------- |
| `#login password`   | Authenticate as admin           |
| `#logout`           | End admin session               |
| `#kick Name`        | Kick a player                   |
| `#exec ban Name`    | Ban a player                    |
| `#restart`          | Restart the mission             |
| `#shutdown`         | Shut down server                |
| `#lock` / `#unlock` | Prevent / allow new connections |
| `#monitor 5`        | Show stats every 5 seconds      |

> Vanilla DayZ has limited admin tools. For item spawning, teleportation, and full management, install **VPP Admin Tools** or **Community Online Tools** — see [Mod Setup](/docs/dayz/mod-setup).

RCON Setup (BattlEye) [#rcon-setup-battleye]

DayZ uses BattlEye RCON. Create or edit `BEServer_x64.cfg` in `profiles/BattlEye/`:

```
RConPassword MyRCONPassword
RestrictRCon 0
RConPort 2306
```

The RCON port (TCP) must be open in the **Network** tab.

RCON Tools [#rcon-tools]

| Tool              | Description                                                    |
| ----------------- | -------------------------------------------------------------- |
| **CFTools Cloud** | Web-based RCON management                                      |
| **BattleWarden**  | Desktop RCON client                                            |
| **BEC**           | BattlEye Extended Controls — scheduled messages, auto-restarts |

Related Guides [#related-guides]

* [Server Configuration](/docs/dayz/server-config)
* [Install Mods](/docs/dayz/mod-setup)
