iPhone 7 not Connecting to iTunes but Charging
If your iPhone 7 isn't connecting to iTunes but it is being charged by your Windows 10 (possibly even Windows 7/8) then try this and it should solve your problem.
First
1) Unlock your iPhone 7 (keep it unlocked the entire time)
2) Plug your iPhone 7 into your Windows PC
3) Go to the search bar and Type in Control Panel. Click on it from the list
4) Click Hardware and Sound
5) Click Device Manager
6) Click the drop down arrow on Portable Devices
7) Right Click on iPhone
8) Select "Update Driver"
9) Click "Browse my computer for driver software"
10) Choose "Let me pick from a list of device drivers on my computer"
11) Click "Have Disk"
12) Click "Browse"
13) C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers
14) Double click on "usbaapl64" (if you're running Windows 10 64-bit. (it'll be just "usbaappl" if you're running the 32 bit version of Windows 10)
15) Click "OK"
16) click "Next" and it'll be done.
Enjoy!