USB ACCESSORY "Unlock ipad to use accessories"

Hi I have a problem my I don't know my login pin code and my ipad and I can't charge my ipad or restore in itunes due to the USB accessories lock

The problem is has a USB accessories lock on so it will not allow USB connections

I need to enter the login pincode to unlock it, but I don't kbow it

I tries dfu mode restore but computer does not recognise ipad
If the device is “managed/supervised” then it can be unlocked with Apple Configurator or an MDM. Get with the IT person managing the device, if applicable.

Outside of that, you’re stuck.

Original thread: https://forums.imore.com/threads/usb-accessory-unlock-ipad-to-use-accessories.430641/