From Console:

1

First Step

2

Second Step

Select your Server
3

Third Step

In the Console, Type ban [username] [reason], Where [username] is the Game Tag of the player you want to Ban and [reason] is the reason for their Ban.
Another banning option is the choice to IP Ban the player:To do that, In Console, Type ban-ip [username] [reason], Where [username] is the Game Tag of the player you want to Ban and [reason] is the reason for their Ban.
There you go! You’ve banned a player for some action