To pair an Xbox Wireless Controller to your PC via Bluetooth:
Turn on your Xbox Wireless Controller by pressing the Xbox button .
Press and hold the Pair button on your controller for three seconds (the Xbox button will start flashing rapidly).
On your PC, press the Start button, then choose Settings > Devices > Bluetooth & other devices.
Turn on Bluetooth.
Select Add Bluetooth or other device > Bluetooth. Your PC will begin searching for your controller.
Select Xbox Wireless Controller or Xbox Elite Wireless Controller > Done.
For other controllers, visit https://beta.support.xbox.com/help/hardware-network/controller/connect-xbox-wireless-controller-to-pc