Default problems flashing to stock on windows 8.1

i wanna reset my phone to stock so i can root it.but windows wont recognize the phone cant find it in device manager.i have unistalled and reinstalled drivers a million times.any ideas and i dont have access to a windows 7 machine.thanks everyone