How to prevent the USB port from being disconnected. How to disable or enable USB ports in Windows. Prevent users from connecting USB storage devices using a Microsoft app

Sometimes it becomes necessary to turn off USB ports on a computer or laptop to limit access by connecting flash drives, hard drives and other USB devices. Disabling USB ports will help prevent the connection of any drives that could be used for theft important information or cause your computer to become infected with a virus and spread harmful software By local network.

Restricting access to USB ports

Let's consider 7 ways, with which you can block USB ports:

  1. Disabling USB through BIOS settings
  2. Changing registry settings for USB devices
  3. Disabling USB ports in Device Manager
  4. Uninstalling USB controller drivers
  5. Using Microsoft Fix It 50061
  6. Usage additional programs
  7. Physical disabling USB ports

1. Disabling USB ports through BIOS settings

  1. Enter BIOS settings.
  2. Disable all items related to the USB controller (for example, USB Controller or Legacy USB Support).
  3. After you have made these changes, you need to save the settings and exit the BIOS. This is usually done using the key F10.
  4. Restart your computer and make sure the USB ports are disabled.

2. Enable and Disable USB Drives Using Registry Editor

If disabling via BIOS does not suit you, you can block access directly in the Windows OS itself using the registry.

The instructions below allow you to block access to various USB drives (for example flash drives), but other devices such as keyboards, mice, printers, scanners will still work.

  1. Open the Start menu -> Run, enter the command " regedit" and click OK to open the Registry Editor.
  2. Continue to next section

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

  3. On the right side of the window, find the item “ Start” and double-click on it to edit. Enter value " 4 » to block access to USB storage devices. Accordingly, if you enter the value again “ 3 ", access will be reopened.

Click OK, close Registry Editor, and restart your computer.

The above method only works when installed driver USB controller. If for security reasons the driver has not been installed, the "Start" parameter value may be automatically reset to "3" when the user connects USB drive and Windows will install the driver.

3. Disable USB ports in Device Manager

  1. Click right click mouse on the " Computer» and select in context menu"Properties" item. A window will open on the left side of which you need to click on the link “ device Manager».
  2. In the device manager tree, find the item " USB controllers " and open it.
  3. Disable controllers by right-clicking and selecting the "Disable" menu item.

This method doesn't always work. In the example shown in the figure above, disabling the controllers (the first 2 points) did not lead to the desired result. Disabling the 3rd option (USB Mass Storage Device) worked, but this only allows you to disable a single instance of the USB storage device.

4. Removing USB controller drivers

Alternatively, to disable ports, you can simply uninstall USB driver controller. But the disadvantage of this method is that when the user connects a USB drive, Windows will check for drivers and, if they are missing, will offer to install the driver. This in turn will allow access to the USB device.

5. Prevent users from connecting USB storage devices using a Microsoft application

Another way to deny access to USB drives is to use Microsoft Fix It 50061(http://support.microsoft.com/kb/823732/ru - the link may open near the mituta). The essence of this method is that 2 conditions for solving the problem are considered:

  • The USB drive has not yet been installed on the computer
  • The USB device is already connected to the computer

Within the scope of this article, we will not consider this method in detail, especially since you can study it in detail on the Microsoft website using the link given above.

It should also be taken into account that this method Not suitable for all versions of Windows OS.

6. Using programs to disable/enable access to USB storage devices

There are many programs for setting a ban on access to USB ports. Let's consider one of them - the program USB Drive Disabler.

The program has a simple set of settings that allow you to deny/allow access to certain drives. USB Drive Disabler also allows you to configure alerts and access levels.

7. Disconnecting USB from the motherboard

While physically unplugging USB ports on a motherboard is nearly impossible, you can unplug ports on the front or top of your computer by unplugging the cable that goes to the motherboard. This method will not completely block access to USB ports, but will reduce the likelihood of using drives by inexperienced users and those who are simply too lazy to connect devices to the back of the system unit.

! Addition

Denying access to removable media through the Group Policy Editor

In modern Windows versions it is possible to restrict access to removable storage devices (including USB drives) using the local editor group policy.

  1. Run gpedit.msc through the Run window (Win + R).
  2. Go to the next branch " Computer Configuration -> Administrative Templates -> System -> Access to Removable Storage Devices»
  3. On the right side of the screen, find the item " Removable drives: Deny reading."
  4. Activate this option ("Enable" position).

This section of Local Group Policy allows you to configure read, write, and execute access for different classes of removable media.

Read how to diagnose and fix a broken USB port on a computer or laptop. Ways to solve the problem at home. Recently, the amount of information surrounding us has increased enormously. We receive information from everywhere: personal computers, Cell phones, Internet, television, radio, etc. Main types professional activity completely, or for the most part, transferred to use computer devices. Documentation, archives, correspondence, databases, etc. - This is only a small part of where personal computers are used. The main requirements for computer devices are their speed, reliability and the ability to store large amounts of information.

One of the main roles in the modern world is played by the mobility of information and the ability to access it at any time. Often there is a need to use certain documents in the most different places, and it is necessary that access to information be constant.

Recently, cloud data storage has become very popular, allowing you to store a large amount of personal information and provide access to it at any time. However, if the user, for any reason, does not want to store information in cloud storage, for example, to protect it from possible access by third parties or possible hacking, then, in this case, he uses external "USB drives" and disks connected to the computer via "USB port".

This is quite convenient, since manufacturers of computer devices supply their products with a sufficient amount "USB ports". And the user can always obtain or download the necessary information to his device through such "USB connection".

However, not in all cases the process of exchanging information through "USB port" may end successfully. It often happens that the day before you connected "USB drive" to the computer, but today it is not detected. However, this disk works on others "USB ports" your computer. Then, probably, the problem may be directly in a certain "USB port".

This is one of those computer problems that happens so rarely that users tend to blame it on themselves. "USB drive". Therefore, they simply switch it to another place and continue working. Without assuming that "USB port" may be faulty and not given proper attention.

However "USB devices" are still at the peak of their popularity and show no signs of slowing down. "USB flash drives", « USB chargers» for your phone, "USB" to connect "iPod", "USB coffee warmers", "USB" to connect additional devices(for example, lamp, camera, microphone, etc.) – as you can see, "USB connection" used everywhere! Therefore, it is imperative that all your ports are in working order.

Below we will present certain steps that will help you check your "USB port" for the presence of a problem of definition "USB devices", and offer some tips to fix it. After each action you perform, check to see if the problem is resolved. If the action does not help, then move on to the next one.

A prerequisite for testing and troubleshooting "USB port" is a requirement to login "Windows" With account administrator. If the computer is your own personal computer, then you are most likely already signed in with that account. For a work (office) computer, you will have to ask your system administrator for help.

Physical examination

The first thing you need to do is check "USB port" for physical damage.

A simple test is to connect your "USB drive" into the port and see how easily the drive moves in the port connector. But be careful not to cause an additional hardware problem if you don't already have one. If you don't know how durable it should be "USB port", perform the same action on the control port that you know works and compare them both.

If the amplitude of the swings is large enough and the connector is loose, then go to the end of this article, where we will talk about problems with the equipment "USB port". Otherwise, continue with the following steps.

Restart your computer

Before taking any steps, try old way fix technical problems: turn off your computer and turn it on again. Sometimes this helps by forcing the operating system to scan Hardware, For example "USB port", and restore its functionality.

If this method didn't work, then it's time to use the app.

Use the application

The application contains information about all devices connected or installed on your personal computer, and provides the ability to configure, configure and monitor each of them.

The application window can be opened in various ways. As an example, we will show several of these methods, and you can use the one that is most convenient for you.

Method one: Open an application window, for example, right-click on the file explorer shortcut on the desktop "This computer", and select a section from the pop-up menu "Control".


This application allows you to fully manage your computer and related utilities. In the left pane of the application window, select the partition located in the folder in the directory “Computer management (local)”.


Method two: On "Taskbars" In the lower left corner of the desktop, find the button "Start" and right-click on it, or press the keyboard shortcut together "Windows + X". In the pop-up menu that opens, select the section from the list of available applications.

Method three: Press the keyboard shortcut together "Windows + R" and open the dialog box "Run". Enter in the field "Open" team "devmgmt.msc", and then press the key "Enter" on the keyboard or button "OK" to execute the command.


The application will open and you will see the following window:


Verifying Universal Serial Bus Controllers "USB"

The application shows all categories of devices installed on your computer. On this moment you need to look at the Universal Serial Bus controller entries. Click the arrow next to the section to expand the subdevices. You will see a list of available controllers similar to our example:


This list will not have much meaning for you. However, it is important to pay attention to the following entry: "Intel(R) 7 Series/C216 Chipset Family USB Enhanced Host Controller". This is a special type "USB controller" directly for our computer, it will be different for you. But keywords here are "USB Host Controller". Find them in your "Device Manager". If you can't find them, then this may be your problem.

Checking the hardware configuration

Click the button "Update hardware configuration" on the application toolbar under the main menu ribbon shown in the figure below. This will force your computer to recheck all your hardware and update it. This action can help and you will see "USB Host Controller" on your list. If the controller does not appear in the list, it means that the problem has not been resolved.

Removal "USB Host Controllers"

At this point things get a little more complicated. You will have to remove all controllers in the application. Please note that if you are working on a personal computer and your keyboard and mouse are connected to it "USB ports", then after removing the controllers, they will stop working.

In the section, right-click on the first host controller. In the pop-up menu that opens, select a section from the list of available actions "Remove device".


Repeat this process for each remaining "USB Host Controller". Now restart your computer. This will force the computer to reinstall and configure those controllers again, and may be able to fix the controller that is not responding.

Clear

There is a possibility that in "Device Manager" may appear earlier installed devices that are no longer connected to your computer. Sometimes device drivers remain installed on your computer long after the device has been disabled. It's time to check and clean the application by removing old and unused drivers.

If this method does not help you, then proceed to the next steps.

Disable

"USB Port Temporary Disable Option" is a power saving option in the operating system "Windows", which suspends the power supplied to "USB device" to increase time battery life computer. This good function, allowing you to save energy, but in rare cases, this option may block the connected "USB device".

You can disable "USB Port Temporary Disable Option" two different methods: Using the power settings settings and through "Registry Editor".

Method one: Using power settings settings

Open the application in any of the following ways: We have not described everything possible ways, but settled on the most common and most convenient of them.

Method one: Press the button "Start" in the lower left corner of the desktop and open the main user menu "Windows". In the menu sidebar, click the gear icon. Or use the scroll bar to move the slider down and select from the list installed applications and programs section.


Method two: Right click on the button "Start" or press the keyboard shortcut together "Windows + X" and open the pop-up menu. From the list of available applications, select the section.


Method three: Click in the lower right corner of the desktop on "Taskbars" button "Center Windows notifications» . A pop-up message will appear from the right edge of the screen. side panel. At the bottom of the Action Center panel is a preset row of quick action buttons. In your case, select the button.


Method four: Press the keyboard shortcut "Windows + I" together and open the app directly.


In the main application window, select a section "System" shown in the figure above. Then in the window that opens, select section in the left panel. In the right pane, move the scroll bar down to the section "Related Options" and click the text link "Advanced power options".


In the window that opens "Power supply" select text link.



Using the scroll bar, find the section in the main settings window "USB Settings". Expand a section using the control (icon "plus" in a square cell) and then the next section "USB Port Temporary Disable Option". Set parameter settings in cells "On battery" And "Offline" by selecting the value in the pop-up menu opposite each parameter "Forbidden".

Click the buttons "Apply" And "OK" to save parameter settings. Now the system will not temporarily shut down "USB ports" to save energy.

Method two: using the app "Registry Editor"

Note: It is important to remember that any actions with the registry must be performed with great care, as this can lead to irreversible consequences. If changes to the registry are made incorrectly, the operating system may crash, problems may arise with the operation of certain computer services, it may stop loading, or the system may completely fail. Take care of creating it first backup copy registry using built-in application capabilities "Registry Editor". In the window main menu ribbon "Registry Editor" click tab "File", and in the menu that opens, select the section "Export…". Give the copy of the registry a name and save it anywhere you wish. Now, if necessary, you can always use your saved copy.

Open dialog box "Run"(for example, by pressing the keyboard shortcut together "Windows + R"), then into the field "Open" enter the command "regedit" and press the button "OK" or key "Enter".


Click the button "Yes" in a User Account Control message "Windows": “Do you want to allow this app to make changes to your device?”, and the application window "Registry Editor" will be open.

In the left pane of the window, navigate to the following key:

You can manually search and open each item along the path to the specified key, or copy the key (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USB\DisableSelectiveSuspend) and paste it into the address bar of the window under the main menu ribbon. This way you can avoid possible errors, since there are many similar directories in the window and it is quite easy to get lost and select the wrong section.

If "USB key" does not exist in your registry, you will have to create it.

To do this, go to the last available key section "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services", then press in main feed menu tab "Edit". In the pop-up menu that opens, open the submenu "Create" and select "Chapter".


Give the new partition a name "USB". Then in this section in the right pane of the window you need to create new parameter "DisableSelectiveSuspend". To do this, right-click on an empty space in the window, open the submenu "Create" and select a section "DWORD value (32 bits)".


Now click on your newly created parameter "DisableSelectiveSuspend" right-click and select partition from the pop-up menu "Change…".


In the parameter change window "DWORD" enter in the field "Meaning" figure "1". Then click the button "OK" to save the changes made to the parameter.

Now "USB Port Temporary Disable Option" is disabled on your computer. For the changes you made to take effect, you will need to restart your computer.

Check if your faulty one is working now "USB port"? If not, then probable cause is physical damage to your "USB port".

Fix damaged hardware

If the port still does not work, then it is quite possible that the problem is related to the hardware. "USB ports" quite fragile and "USB flash drives" can act as leverage on them, destroying the electrical connectors inside the ports. This is observed quite often in laptops, when the user puts the laptop in a bag and forgets to take it out "USB drive". Usually such a malfunction can be corrected. You'll likely need to call a computer repair professional to fix the problem, or try to do it yourself by searching for repair methods online. However, the second method is suitable for those people who have quite a lot of experience in repairing computer devices.

Conclusion

There are several ways to restore your non-working "USB port". The cheapest and easiest solution is to fix it "USB port" in case of a driver problem or operating system. Even if the problem is identified at the hardware level, it can still be fixed quite simply and inexpensively.

If you have other troubleshooting tips for "USB ports", or have you ever had to repair "USB port", or you know of possible software tools that could help troubleshoot your "USB port", then let us know about it in your comments.

Talk about what function to temporarily disable USB port in Windows 10- this is something super natural, it’s just not worth it, and it’s all because this option itself appeared relatively long ago (back in the edition of Windows 7), but just at that moment, there were rumors about this kind of opportunity there were few programs, and therefore, most PC users learned about the new option only when the “top ten” appeared.

What is the purpose of temporarily disabling the USB port in Windows 10?

  • The original purpose of this option was to automatic settings power plan (this is especially true for laptops), so that by disconnecting several USB ports, you can significantly increase the battery life of the laptop battery. It is precisely disabling USB ports that allows your hardware not to constantly waste electricity to maintain 100% functioning of USB ports that are not currently in use.
  • Also, this option in Win 10 it can be used to disable a USB port for a while, provided that you are trying to connect some device to it, but when connecting, you see an error.

The process of deactivating a USB port is as follows

Initially, you will have to open the “Control Panel” of your OS; to do this, you need to enter the phrase “Control Panel” in the OS search bar located on the taskbar, and then select the appropriate item. Now, find the “Power Options” icon and click on it to get to the corresponding section of the program.

Please note that if you cannot find the “Power Options” item, then you most likely have the category display mode turned on and, accordingly, you will have to first click on the “Hardware and Sound” item and only after that, on the section to which you need to get in.

In the new window, there is nothing except the “Edit” item Extra options you don’t have to choose food.

And now, the home stretch, because this is where it turns on and off USB port feature in Windows 10. In order to deactivate a USB port, follow the following path: initially select “USB Options” -> then click on “Option to temporarily disable USB port” -> select the item “Prohibited” -> click on the “Ok” button.

In order to enable the USB port, you can make a similar log of actions described above, but only at the end, you must select “Allowed”.

It is worth understanding that this method of saving power and turning off the USB port when errors occur related to its operation is not a 100% panacea that will always and everywhere help you, but be that as it may, in some moments of the laptop’s life, this The function works 100%.

Answer from GENNADY GURIN[guru]
Option 1: Change BIOS settings: 1) During boot time, go to the BIOS (to do this, press the Delete key after the computer starts booting) 2) In the BIOS, go to the Power tab 3) Try changing the value of the Suspend Mode parameter (Auto, S1 (POS) Only, S3 Only) name may differ, look for similar ones with values ​​S1, S3. 4) Also try to enable/disable ACPI 2.0 Support → EnabledDisabled Option 2. Disable wake up using USB mouse or USB keyboard. Some USB devices do not support sleep correctly Windows mode. The two main devices with which you can wake up from sleep mode are the keyboard and mouse. One of them may be blocking your exit, in which case it should simply be prohibited from doing so. Attention: Do not disable the keyboard and mouse at the same time, otherwise you will not be able to exit it. 1) Launch Device Manager. To do this, go to Start → Run (or Win + R) → devmgmt.msc → OK 2) In Device Manager, expand Mice and other pointing devices or Keyboards 3) Right-click on the USB mouse or USB keyboard and select Properties . 4) Open the Power Management tab. 5) Uncheck Allow this device to wake the computer from sleep mode and click OK. Option 3: Disable sleep/standby mode. 1) Go to Start → Run (Win + R) → powercfg.cpl → OK 2) Select the item Setting sleep mode on the left 3) Set both parameters: Turn off the display and Put the computer into sleep mode, the value is Never. You can also disable the sleep function. Select "Change advanced power settings." Find the Sleep mode in the window, expand Sleep After and set the value of the parameters there to Never If, despite what has been done above, the computer still continues to turn off, then you need to perform some more actions: 4) Download the reg file PowerSettings.reg and apply it. 5) Open the Sleep tab 6) Set the following values ​​for the parameters by opening their tabs: 6.1) Sleep after - value equal to 0, it is identical to the Never value 6.2) Allow the policy required by the system - value Yes (this will prevent automatic transition to standby mode) 6.3) Allow wake timers - Enable (allows you to automatically wake the computer from sleep mode using specified events) 7) If you have one of USB devices for example a mouse, and the second a PS/2 keyboard, then you can disconnect the USB port while the sleep mode is running. Open the USB Settings tab, and in it the tab Option to temporarily disable the USB port and set the value to Allowed. 8) Click OK