How to never "allow this device to access photos and videos"? [duplicate]

I have an iPhone at work, and I charge it by connecting it to my work laptop (Windows 7) via USB. Every damn time I do this, the phone asks me to Allow this device to access photos and videos? with the choices Allow and Don't allow.

I want to say never allow because I don't want any data connection at all but Apple has not provided this useful choice. What workaround can I use?

Note: I would just use a wall charger instead but there are no power sockets in my workspace.


added: The phone is listed as an Unspecified device under Devices and printers. When I open the properties, it just says This device is working properly. and I am not allowed to update the drivers. See screenshot:

enter image description here


Solution 1:

You don't specify, but I'm guessing you're using a Windows laptop. It's actually an issue on the Windows side of things, because what you're getting the wrong message. That is, if you're supposed to get any message, it should be the Trust this computer message.

The way to fix this (assuming you are in fact on Windows), is to:

  1. Go to your Start menu and open Control Panel

  2. Click on device manager

  3. You should see a list of device types with arrows to the left of their names

  4. Find the one with iPhone listed under it (usually it'll be under the Portable Devices category, but not always)

  5. Right-click on iPhone and select Update Driver Software...

  6. Click browse and navigate to the following location:

    C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers

  7. Select it and it should load the driver

NOTES:

  • I've tried giving you generic instructions as it's not clear what version of Windows you're using.
  • You should have your iPhone connected in order for Windows to see the device.
  • Note that you may get the Trust this computer message on your iPhone, but once you opt to trust it then you should be fine to go.