I have Windows 8.1 64. Upgraded my iphone 5 to 7.1 version. My laptop did not recognize the iphone. After a couple of hours of tring to figure out why the laptop and iphone weren't syncing, these are the steps I followed. Most are pieced together from suggestions on various websites. Don't know if all steps are necessary, but it's what I did and it worked for me.
I did this first: Uninstall and reinstall itunes.
Reboot computer and iphone (turn off the on again)
Then, go to control panel and "repair" all apple apps.
Go to Device Manager on computer.
Go to Universial Serial Bus Controllers and look for "Apple Mobile Sevice USB Driver (Before "repairing" the apple apps, this did not appear on my laptop).
Right-click the Apple iPhone in Device Manager and select Update Drive.
Click "Browse my computer for driver software."
Click "Let me pick from a list of device drivers on my computer."
Click the "Have Disk button"
At the "Install from Disk" click Browse button.
Go to the following folder: C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers and Click OK.
Click Next and finish the driver-installation steps.
You should then see the "Apple Mobile Service USB Driver in the Device Manager now.
Open itunes and hopefully the iphone and Windows 8.1 laptop will sync (a dialogue box will appear on the iphone 5 asking you to "trust" the computer. Select Trust.)
If this doesn't work, try rebooting your computer and turning off your iphone and then turn it back on.
Good Luck. It shouldn't be this time-consuming.