# CSGO Server command

**Restart Server**

```
sm_restart
```

This command instantly reboots the server.

**Change Map**

```
changelevel de_newmap
```

This command switches the server to a new map specified by **de\_newmap**.

**Kick a Player**

```
kick [username]
```

Use this command to remove a specific player from your game server.

**Ban a Player**

```
banid [SteamID]
```

This CS2 server player management command bans a player from joining your server.

**List Connected Players**

```
status
```

This command lists all players connected to the server and their information.

**Log Server Activity**

```
log on
```

This command enables the logging of server activities for review.

**Set Max Players**

```
maxplayers [number]
```

This command sets the maximum number of players that can connect to your server.