Try pre-installing the drivers for your devices. Make sure, under Windows, that your device is recognized in the System control panel first.
I use Windows 7 and my Galaxy Nexus wouldn't be recognized by the system until I installed the device drivers before plugging them in. From the comments, this works on Windows 8 as well.
Galaxy Nexus drivers
- http://www.samsung.com/us/support/owners/product/SCH-I515MSAVZW#
- Goto Manual & Drivers > Software
Nexus 7