---
title: Kick or Ban Players from a Valheim Server
description: Keep your Valheim server under control with the built-in moderation commands. This guide explains how to enable the console, kick or ban players, remove bans, and edit bannedlist.txt directly through your Nodecraft server files.
source: "https://nodecraft.com/support/games/valheim/setup/kick-or-ban-players-from-a-valheim-server"
image: "https://dynamic-assets.nodecraft.com/signedurl/w7vokBAexMnVlnMZ1Q/image.jpg?modifications=W3sibmFtZSI6ImdhbWVfYmciLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvMjAwMHg1NTAvZjY2ZTY0Y2JjNS92YWxoZWltLTEtMi0wLnBuZy9tLyJ9LHsibmFtZSI6ImdhbWVfbG9nbyIsImltYWdlX3VybCI6Imh0dHBzOi8vY21zLWEubm9kZWNyYWZ0LmNvbS9mLzEzMzkzMi8zNzV4MTUwL2MwZGEwNmUzMzAvdmFsaGVpbS5wbmcvbS8ifSx7Im5hbWUiOiJjdGFfdGV4dCIsInRleHQiOiJDcmVhdGUgeW91ciBvd24gc2VydmVyISJ9LHsibmFtZSI6InRleHQiLCJ0ZXh0IjoiS2ljayBvciBCYW4gUGxheWVycyBmcm9tIGEgVmFsaGVpbSBTZXJ2ZXIifV0&s=f33c22be68beae29243c913be8278dd6224d680b19aa70d541b9fc820f48521a"
published: "2026-09-03T23:05:33.494Z"
updated: "2026-09-13T16:34:14.555Z"
---

# Kick or Ban Players from a Valheim Server

Keep your Valheim server under control with the built-in moderation commands. This guide explains how to enable the console, kick or ban players, remove bans, and edit bannedlist.txt directly through your Nodecraft server files.

Sometimes a player needs to be removed from your Valheim server. Server admins can kick players temporarily, ban them from reconnecting, and remove bans when needed.

This guide covers the commands used to kick and ban players from a Valheim server, along with how to manage banned players from the Players page in your Nodecraft dashboard.

**Note: You need administrator access before using moderation commands. **

## Manage Banned Players Through In-Game Moderation Commands

### Enabling In-Game Console

1. Open Valheim and select Settings.
2. Select Gameplay.
3. Turn on Enable Console, as shown below. Join your server, then press F5 to open the console.

  ![Settings window showing tabs; Language English; Enable Console highlighted; many toggles and buttons (Delete PlayFab account, Radial Menu, Back, OK).](https://cms-a.nodecraft.com/f/133932/1229x897/39a481e090/valheim-enable-console-admin-commands.png/m/1000x0/smart)

### Kick/Ban a Player

1. Join the server with an administrator account and press F5 to open the console.
2. Enter the command you want to run. Use **kick PLAYERNAME** to disconnect a player while allowing them to reconnect or **ban PLAYERNAME** to prevent them from rejoining. Replace **PLAYERNAME** with the player’s exact name. To remove a ban, enter **banned** to view the ban list, then use **unban USERID**, replacing **USERID** with the ID of the player you want to unban.
3. Use the player's Platform User ID instead when you need to identify the account more precisely.

### Unban a Player

1. To remove a ban, enter **banned** to display the current ban list, then enter **unban USERID**, replacing USERID with the account you want to restore.

## Manage Banned Players Through the Dashboard

You can also manage bans from the Players page without editing server files. Use the player search to select a recent player or enter a complete Platform User ID to identify the account directly.

### Add a Ban

1. Navigate to your Nodecraft dashboard.
2. Locate your Valheim server and click **Manage**.
3. **Stop **the server.
4. Click **Players **in the menu on the left, then select the Banned tab.
5. Under Search Players, select a recent player or look one up using their Steam ID, then click **Add Ban**.
6. Alternatively, paste the player's complete Platform User ID into **Add by Player ID** and click **Add ID**.
7. Check that the player appears in the banned list, then **start** the server.

The Banned tab below shows both ways to add a ban. For Add by Player ID, copy the ID exactly as the server log or in-game F2 panel displays it, including capitalization and its platform prefix: V\_ for Steam, X\_ for Xbox, S\_ for PlayStation, or N\_ for Nintendo.

![Dark ban panel with tabs: Allowlist, Admins, Banned. Search, Add Ban; Add by Player ID (V_7656119800000000); no banned players yet.](https://cms-a.nodecraft.com/f/133932/1000x685/029dd84228/valheim-dashboard-ban-player-id.png/m/)

### Remove a Ban

1. Open your server's Players page and select **Banned**.
2. Find the player in the list and use the removal control in the Actions column to remove the ban.

## Final Thoughts

Valheim's moderation tools are simple, but they cover the important jobs: removing a disruptive player, keeping an account out, and opening the door again when the situation is resolved. Used carefully, they keep the server welcoming without turning every disagreement over a misplaced workbench into a Viking tribunal.
