In short
If your TeamSpeak privilege key (admin token) is lost, you can get admin rights back without resetting the server. If another admin exists, they generate a new key; if not, you connect to ServerQuery with the serveradmin login and create a new key for the Server Admin group with the privilegekeyadd command. If the query password is lost too, reset it with a startup parameter or ask your hosting provider for help.
In this guide
- First, diagnose the problem correctly
- Key concept: permissions are tied to your identity, not the key
- Method 1: Have another admin create a new key
- Method 2: Create a new privilege key with ServerQuery
- Method 3: If the ServerQuery password is lost too
- If someone else took your permissions
- Searching the logs for the initial setup key
- Back up your admin identity
- Tips to avoid getting locked out again
- Next step
If your TeamSpeak privilege key (admin token) is lost or a used key no longer works, there is no need to panic: there are three ways to get admin rights back without resetting the server. If there is another admin on the server, they just generate a new key; if there is no one, you connect via ServerQuery and create a new key; if the ServerQuery password is lost too, you reset it. This guide walks through each scenario in order with copy-and-paste commands and shows you how to back up your identity so this never happens again.
First, diagnose the problem correctly
Losing admin rights usually shows up in one of the following ways. Knowing which one applies to you helps you pick the right fix:
- The key was never used and got lost: You did not write down the key from the initial setup.
- The key was used but the permissions are gone: Your PC was reformatted, TeamSpeak was reinstalled, or you are connecting from another computer. Your permissions are still on your old identity.
- You get an invalid key warning: Privilege keys are single-use; a key that was already used or deleted will not work a second time.
- Someone took your permissions: Another privileged user removed you from the group or changed the group's permissions.
Key concept: permissions are tied to your identity, not the key
TeamSpeak has no usernames or passwords. The client creates an identity on the computer where it is installed, and each identity has a unique UID. The moment you redeem a privilege key, the Server Admin group is bound to that UID; the key itself becomes useless.
So if you have a backup of your old identity, you often do not need to recover anything: import the backup, connect, and your permissions come back. First check your computer or old backups for an identity .ini file.
There may also be more than one identity on the same computer. When the client is reinstalled, the old identity may not have been deleted, but the default identity may have been switched to a new one. Selecting each identity listed in the Identities window and trying to connect sometimes fixes the problem in one click.
Method 1: Have another admin create a new key
If a friend still has Server Admin rights on the server, this is the fastest fix:
- The admin opens Permissions > Privilege Keys in the client.
- Using the Add button, they set the group type to Server Group and the group to Server Admin, and optionally add a description.
- They send you the generated key in a private message.
- You enter the key via Permissions > Use Privilege Key.
Alternatively, the admin can skip the key, right-click your name and add you directly to the group via Server Groups > Server Admin.
Method 2: Create a new privilege key with ServerQuery
If no one on the server has admin rights, use ServerQuery. ServerQuery is the admin interface for managing the server from the command line, and the serveradmin account can access everything on the server. You need the server address, the query port (default 10011/TCP raw or 10022/TCP SSH) and the serveradmin password.
Connecting
On Linux or macOS, SSH query is the most practical option:
ssh serveradmin@SUNUCU_IP -p 10022On Windows, the built-in ssh command in PowerShell works the same way. If you prefer raw query, choose Raw as the connection type and 10011 as the port in PuTTY, or use telnet:
telnet SUNUCU_IP 10011
login serveradmin QUERY_SIFRENIZSelecting the virtual server and generating a key
use port=9987
servergrouplist
privilegekeyadd tokentype=0 tokenid1=6 tokenid2=0 tokendescription=Yeni\sadmin\sanahtari- The
use port=9987command selects the virtual server whose voice port is 9987. If your port is different, enter that instead. servergrouplistlists the groups. Confirm the Server Admin group'ssgidhere; on a default install it is usually 6, but it may have changed.tokentype=0means server group,tokenid1is the group ID, andtokenid2is 0 for a server group.- In ServerQuery, spaces are written as
\s.
If the command succeeds, you will see the new key starting with token= in the response. On older server versions, the tokenadd command does the same job. Paste the key into Use Privilege Key in the client and close the session with quit.
Adding your UID to the group directly instead of using a key
If you know the UID of the identity you are connected with (shown in the client under Tools > Identities), you can grant permissions without a key:
clientdbfind pattern=UID_DEGERINIZ -uid
servergroupaddclient sgid=6 cldbid=BULUNAN_CLDBIDIf the UID contains a / character, it must be written as \/ in ServerQuery. The identity must have connected to the server at least once to appear in the database.
Method 3: If the ServerQuery password is lost too
If you manage your own server, you can reset the serveradmin password with a startup parameter. Stop the server first, then start it with the new password:
# Linux
./ts3server_startscript.sh stop
./ts3server_startscript.sh start serveradmin_password=YeniGucluSifre
# Windows (in the server folder)
ts3server.exe serveradmin_password=YeniGucluSifreAfter the password is changed, restart the server without the parameter; otherwise the password stays visible in plain text in the process list and startup commands. Then follow the steps in Method 2.
If you use a hosted server, the ServerQuery details may be included in your service information. If you cannot access them, you can verify that you own the server and ask your hosting provider for a new privilege key. OyunBulut customers can get help with this by opening a support ticket.
What to include in your support ticket
Including the following details speeds things up so your request can be resolved in one go:
- Open the ticket from the account the service is registered to; this makes ownership verification easier.
- Include the server address and voice port.
- Add the UID of your current identity to specify which identity should receive the permissions.
- Briefly explain how you lost the permissions (reformat, lost key, someone else's interference). If you suspect interference, say so explicitly.
Only request details like a privilege key or ServerQuery password through a support ticket; never give them to anyone who asks for them on social media or by private message.
If someone else took your permissions
If someone with access to the server removed you from the admin group, this is a security incident, and simply getting your permissions back is not enough. Right after regaining admin rights via ServerQuery, run these checks:
servergroupclientlist sgid=6
servergroupdelclient sgid=6 cldbid=TANIMADIGINIZ_CLDBID
privilegekeylist
privilegekeydelete token=SUPHELI_ANAHTAR
banlist- List the admin group's members: The
servergroupclientlistcommand shows every member of the group. Remove entries you do not recognize withservergroupdelclient. - Clear pending keys: Delete every key listed by
privilegekeylistthat you did not create; otherwise the attacker can regain permissions. - Check the ban list: See whether you or your trusted members have been banned.
- Review group permissions: Check whether the power values of lower groups such as Moderator have been raised.
- Change passwords: Renew the server password and, if anyone gained access to it, the ServerQuery password.
Searching the logs for the initial setup key
On your own server, if the key was never used, it is worth checking the log file from the first startup. Search for token= in the earliest dated file in the logs folder:
grep -i "token=" logs/ts3server_*_1.logIf the key has already been used, the value you find is useless; in that case, generate a new one with Method 2.
Back up your admin identity
The only sure way to never face this problem again is an identity backup:
- In the TeamSpeak client, open Tools > Identities (Ctrl+I).
- Select the identity that has admin rights and save it as an .ini file with Export.
- Store the file off your computer, in an encrypted cloud folder or a password manager. Anyone who has this file can connect with your permissions; never share it.
- On a new computer, load the file with Import in the same window and set that identity as the default.
On Windows, the client's settings and identities are stored by default in the %APPDATA%\TS3Client folder; backing up that entire folder before a reformat is another option.
Tips to avoid getting locked out again
- Keep at least two trusted people in the Server Admin group.
- Delete unused privilege keys from the Privilege Keys list.
- Do not give moderators permission to modify groups or generate keys; for details, see the TeamSpeak permissions guide.
- Store the ServerQuery password in a password manager.
Next step
If you are launching a new server and want to set these steps up correctly from the start, the OB-TS-1 TeamSpeak plan gets you going quickly with automatic setup, a web panel and DDoS protection; right after redeeming the first key, just back up your identity and appoint a second admin. For the full setup process, follow the TeamSpeak server setup guide, and compare TeamSpeak server plans based on your community's size. If you are thinking of moving your current server, launch your new server with OB-TS-1 and rebuild your permission structure cleanly.
Frequently asked questions
I lost my TeamSpeak privilege key. Do I have to reset the server?
No. Another admin can generate a new key, or you can connect to ServerQuery with the serveradmin login and create a new key with the privilegekeyadd command.
Why does TeamSpeak say my privilege key is invalid?
Privilege keys are single-use. A key that was already used or deleted will not work again; you need to create a new one.
Why did I lose my TeamSpeak admin rights after reformatting?
Permissions are tied to your identity (UID), and after a reformat the client creates a new identity. Import the .ini backup of your old identity and your permissions come back.
How do I reset the TeamSpeak serveradmin password?
On your own server, stop the server and start it with the serveradmin_password=YeniSifre parameter. On a hosted server, you can ask your hosting provider for help.
How do I back up my TeamSpeak identity?
In the client, open Tools, Identities (Ctrl+I), select the identity, save it as an .ini file with Export, and keep it somewhere safe off your computer.