How to disable usb port with gpedit windows 7
1. Go to Run.
2. Type > gpedit.msc and press enter.
3. Under Computer Configuration > Policies > Administrative Templates > System > Removable Storage Access
Change the state to Enabled for for Removal Disks as below :
Removable Disks: Deny read access Enabled
Removable Disks: Deny write access Enabled