Originally Posted by icrf
Start > type "cmd" and launch. You get a black box with white letters in a mono-spaced font.
Run the following (assuming this is the right path for you): SET PATH=%PATH%;C:\Program Files (x86)\Android\android-sdk\platform-tools
Then you should be able to run fastboot.exe and continue on.
Alternatively, you can browse in a file explorer window to that directory, then right click on it (maybe while holding shift) and choose "Open command window here"
i am working on a guide right now to try and make it as easy as possible but moto requiers you to sign in inorder to get everything done. but the correct command for Windows is CD then the location ware your adb and fastboot files are
Click on the link below and pick your Moto X by what carrier you are with
im going to try and do this the best i can but no matter what i do your going to have to go to the moto website to get the unlock key
download the SDK and install it.
locate ware it was installed normally (C:\Program Files\Android\android-sdk)
open Command Prompt and type
CD C:\Program Files\Android\android-sdk\platform-tools
put phone into bootloader
type below commands in CMD
fastboot oem get_unlock_data
it should come back with something like this
Now we need to remove all the (bootloader) and make the key into one line
we then need to paste this into the box on the bottom of the Moto unlock page and hit the button "Can my Device be Unlocked"
if your device can be unlocked you need to accept the license agreement and then click the button to request your key. It will then email you your unlock key.
Copy your unlock key then click the link Step 3
now if you left your device connected and everything ware it was then great if not we need to put are phone back into bootloader and open a CMD and CD it to the same directory as before.
fastboot oem unlock UNIQUE_KEY
ware Unique_key being the code you copied from your email.
now your bootloader is unlocked.
Sorry this guide is not great but it is the best i can do for the fact that you have to be on the moto website to get your unlock key. i hope this helps somewhat.
Sprint Moto X TWRP 4.4 Self Detoxed