Regedit windows 7 usb

В предыдущей статье я написал как неопытному пользователю отключить USB-порты порты по средствам групповых политик. Однако я забыл о том что разные версии OS Windows 7 содержат разные функции.
Прошу заметить я не говорю о том чтобы ставить дополнительный бесплатный софт, так как по опыту знаю, что закрывая дырку бесплатным ПО рискуешь открыть еще пять. Я предлагаю воспользоватся встроенными функциями ОС.

По опыту знаю что для экономии маленькие фирмы ставят такие версии «Home Basic» или «Home Premium» на машины персонала (ну это только ставят если фирма пытается работать легально и не хочет штрафа за нелегальное ПО. А те фирмы которые не боятся проверок то ставят все пиратское ПО и не мучаются )) ).
А на версиях «Home Basic» и «Home Premium» нет оснасток присущим старшим братьям. И закрыть порты по средствам групповых политик не получится. Поэтому нам нужно закрыть доступ непосредственно к исполнительным файлам которые запускают инициализацию устройств подключаемых к USB-портам.

Допустим, что на машине есть 3 пользователя, «Оператор», «Менеджер» и «Администратор» в группах Администраторы и Пользователи
Нужно сделать так чтобы флешкой мог воспользоватся, только пользователь под учетной записью «Администратор».

Включаем комп, заходим под учетной записью администратора, открываем проводник и пишем «%SystemRoot%\inf\» (здесь и далее по тексту копировать без кавычек).

Далее в поиске пишем «USB»

Выведет приблизительно 18 элементов. (зависит какая система стоит, версия ОС, установленные доп драйвера для USB)
Нам нужно по сути только 8 файлов.
usb.inf
usbstor.inf
usbport.inf
winusb.inf
usb.PNF
usbstor.PNF
usbport.PNF
winusb.PNF

Потом нам нужно закрыть доступ к этим файлам другим пользователям. Нажимаем правой кнопкой на файле «usbstor.inf» -> «свойства»

Переходим на вкладку «безопасность», и нажимаем кнопку «изменить»

Потом выбираем пользователей которых нам нужно отключить. У нас это «Оператор», «Менеджер» и «Система». Если нам нужно отключить всем учетным записям которые относятся к группе «Пользователи» (это «Оператор» и «Менеджер») то просто ставим запрет группе. Если только конкретному, допустим «Оператору», то выбираем конкретно эту учетную запись.

Внимание учетной записи «Система» тоже нужно выставить запрет на использование файла.
Потом выставляем запрет на использование, переключаемся на другого пользователя и тоже выставляем запреты. Когда нужные пользователи будут отключены (у меня это только «система» и «пользователи»)

жмакаем кнопку «Ок»

Будет предупреждение о том что это приведет к тому, что доступ к файлу будет недоступен и всякое такое (если есть желание можете почитать), жмакаем снова кнопку «Ок».
Снова читаем сообщение о том что точно ли мы хотим это сделать, (если есть желание можете почитать), жмакаем снова кнопку «Ок».

И такую процедуру повторяем для следующих 7 файлов.
usb.inf
usbport.inf
winusb.inf
usb.PNF
usbstor.PNF
usbport.PNF
winusb.PNF

Если это только установленная ОС то все в порядке и по идее доступ к флешке выбранным пользователям будет недоступен. Однако если к этой системе уже были подключены флешки теми пользователями которым нужно было отключить доступ к флешкам, то понадобится изменить ключ в реестре.

жмем пуск -> пишем regedit -> открываем реестр

Открываем папку «USBSTOR»
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
и меняем значение параметра «Start» на 4

Some of you might have experienced that when you attach a USB drive to a computer at your school or office, the computer doesn’t respond? It is because the administrator has disabled the USB ports and therefore, USB drives are not recognized.

Disabling access to USB ports is a great way to stop unauthorized users from transferring or stealing data from your computer. Some might feel it is a cumbersome process, but do not worry as we have you covered.

If You are Windows 10 users then check How To Enable/ Disable USB Ports On Windows 10?

In this article, we have listed a few ways to enable/disable USB ports in Windows 7.

Method 1. Steps to Disable or Enable USB Ports From Regedit–

You can make changes in your Registry files to enable or disable the USB ports in Windows 7. Follow these steps:

Step 1: Go to Start Menu, type “Regedit” in the Search box to open Registry Editor.

Regedit

Now, make sure you take a backup before proceeding with further steps. It only takes up to a couple of minutes and saves you from any harm to your computer. To take a backup, go to File and click on Export and now save the file to a location which is easily accessible on your computer. Making changes to the Registry Editor can cause permanent changes in your system settings; hence it is advised to be changed with technical help.

Step 2: Navigate to this key –

KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

Disable USB Ports

Step 3: In the right-hand panel, look for Start and right-click on it.

Disable USB Ports

Step 4: A sub-menu will appear, choose Modify.

Step 5: A small pop-up window will open; check if the value is 3.

Step 6: If yes, then the port is already enabled. Change the value to 4 to disable the port.

Step 7: Click OK to apply changes.

Also read: Five uses of USB you probably don’t know.

How To BackUp And Restore Windows Registry

Method 2. Uninstall/Reinstall USB Mass Storage Drivers to Unblock or Block USB Ports

Another way to enable/disable the USB ports is, to install/uninstall the USB drivers. If you wish to use your USB device on your work computer or stop anyone from using your computer to transfer data, then follow these steps to uninstall USB drivers:

Step 1: Go to Start Menu, type “devmgmt.msc” in the Search box to open Device Manager.

Disable USB Ports

Step 2: Click on the Universal Serial Bus Controllers.

Step 3: You will get the list of USB ports

Step 4: Right Click on the USB port and uninstall the driver to disable the port.

uninstall driver

Note: If you wish to install the USB driver in future,  plug-in your USB drive and Windows will check for drivers. If not found, Windows will prompt you to install the driver.

Also Read: How to protect your USB pen drive with password.

Method 3. Disable USB Ports from Device Manager

You can disable/enable or disable the USB ports through Device Manager. If you wish to use your USB device on your work computer or stop anyone from using your computer to transfer data, then follow these steps to disable USB drivers:

Step 1: Go to Start Menu, type “devmgmt.msc” in the Search box to open Device Manager

Step 2: Click on the Universal Serial Bus Controllers.

Step 3: You will get the list of USB ports.

Step 4: Right-click on the USB port and disable/enable the port.

Enable USB Ports

Method 4. Using Group Policy Editor-

Step 1: Click on the desktop, and press Windows key + R.

Step 2: This will open the Local Group Policy Editor for your system.

Step 3: Here go to the Computer Configuration> Administrative Templates> System> Removable Storage Access.

Step 4: On the right-side panel, locate All Removable Storage classes: Deny all access. Double click on it to open a tab for changing its settings.

Local Group Policy Editor

Step 5: In the tab for the All Removable Storage classes: Deny all access, select the Disabled option. Now, click on Apply to save changes in the settings.

Disable USB Ports

Method 5. Disconnect USB

It is not possible to disconnect all the USB ports from a motherboard, but you can disconnect those which are on the top and front of the computer by plugging out the cable from the USB header. Disconnecting these ports can prevent people from easily misusing them for their benefit.

Method 6. Enable/Disable USB Ports Using Third-Party Software –

You can also enable or disable the USB ports by using a third-party tool. There are many tools available for USB port blocking. We have found two such software and you can choose of them mentioned below:

1. SysTools USB Blocker

SysTools USB Blocker

One of the easy ways to disable USB on a computer is to use SysTools USB Blocker. It is a third party software which allows you to block all USB ports from any machine. All you need is your login credentials for the machine to block or unblock ports. It also provides an option to recover lost user passwords through your email address. The tool can block or unblock unlimited USB ports of various laptops and computers. The software comes with a rich and intuitive interface that is suitable for the users. Get it now from the download button given below.

Features-

  • User-friendly interface.
  • Password protected disable/enable for USB ports.
  • Works for all Windows versions.
  • Recovery of password with the email address.

2. USB Block

USB Block

Another software to be used for USB disable on Windows 7 is the USB Block. This software can easily block and unblock USB ports. It prevents data leakage from your devices like USB drives, network computers. You can put your USB device as an exception in Whitelist, and access it on your computer. It also checks the log of any illegal activity to keep your computer secure.

Features –

  • Comes with data leak prevention.
  • No theft with its use.
  • Will help in authorizing trusted USBs.
  • Saves Login activity.

Also Read:

These are the few ways to disable/enable the USB ports and let us know what worked for you.

Other USB Related Topics-

How to fix USB port not working on your computer.

How to install pfsense using a bootable USB.

Best USB type-C to HDMI adapter 2020.

USB-4: What’s new and why is it important?

Last Updated on March 7, 2021 by Bestusefultips

Here’s how to enable or disable USB port Windows 7 / 8 PC. In college, school and office we cannot access any USB mass storage device in windows device because of the administrator or admin disable USB devices or drivers from the computer. So nobody can use Pendrive or any other USB devices. There are various reasons to disable USB ports on laptops or computers such as stolen important data or documents, move data somewhere quietly, etc.

You can disable or enable USB port in window 7 using this registry, software, device manager and installing a new USB driver on your Windows PC. Follow below given four methods to enable or disable USB Port Windows 7 PC.

Also Read:

How to pause updates in Windows 10 up to 35 days

How to upgrade Windows 7 PC to Windows 10 Pro

How to make Pendrive bootable in Windows 7

How to show hidden files and folders in Windows 7 / Windows 8

How to enable or disable USB port Windows 7, Windows 8, Windows 10

Check out below given four different methods to access USB port in Windows 7 PC or Laptop.

Enable/disable USB Ports Using Registry

Step 1: Tap on the “Windows Start Menu” button

Step 2: In search box type ‘Run’ and press enter

Step 3: Type ‘Regedit’ and press enter

Step 4: In registry editor navigate to the following key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

Step 5: In the right pane of your USBSTOR, select start and change the value 4 instead of 3.

Step 6: Click “OK”

After completing step 6 it will disable USB port windows 7 PC or laptop and not access pen drive or other USB devices. If you want to enable USB Port in Windows 7 then change the value 3 instead of 4.

Enable/disable USB Ports Using Software

You can download or buy the best software tool to protect your PC against the data loss or data theft through a portable device that allows enabling/disabling USB mass storage in your windows 7 desktop. You can also download USB Drive Disable Pro to disable or enable USB Port on Windows 7 PC / laptop.

Disable USB Ports using Device Manager

This is the simple method to disable USB port windows 7 / 8 laptop using your windows PC’s device manager. You cannot lose your important document or data if some mistake. Follow the below step for Disable USB ports using Device Manager.

Step 1: Tap on “Windows Start Menu”

Step 2: In search box, type “device manager” then click enter

Step 3: In a dialog box, Tap on “Universal Serial Bus Controllers (USB)”

Step 4: Double Click on the particular USB Port

Step 5: In USB Root dialog click on the “Driver tab”

Step 6: Click on Disable

Disable USB Port Windows 7 using USB Mass Storage

When you plug in your USB drive in your windows computer, windows will check for driver install or not, if windows will not found USB driver then you must install the USB driver. After installing the USB driver you can access Pendrive or any USB devices in your windows computer.

Above you can see the steps to enable or disable USB port Windows 7 / 8 devices. If you’re having problems implementing this, don’t hesitate to let me know on below comment box, would be a pleasure to help you. Connect with us for daily latest Windows updates!

Если вам требуется, чтобы к компьютеру или ноутбуку с Windows 10, 8.1 или Windows 7 никто не мог подключить USB-накопители, вы можете запретить использование флешек, карт памяти и жестких дисков используя встроенные средства системы. Мышки, клавиатуры и другая периферия, не являющаяся хранилищем, продолжит работать.

В этой инструкции о том, как заблокировать использование USB флешек и других съемных накопителей с помощью редактора локальной групповой политики или редактора реестра. Также в разделе с дополнительной информацией о блокировке доступа через USB к устройствам MTP и PTP (камера, Android телефон, плеер). Во всех случаях для выполнения описываемых действий вы должны иметь права администратора в Windows. См. также: Запреты и блокировки в Windows, Как поставить пароль на флешку в BitLocker.

Запрет подключения USB флешек с помощью редактора локальной групповой политики

Первый способ более простой и предполагает использование встроенной утилиты «Редактор локальной групповой политики». Следует учитывать, что эта системная утилита недоступна в Домашней редакции Windows (если у вас такая версия ОС, используйте следующий способ).

Шаги по блокировке использования USB накопителей будут следующими:

  1. Нажмите клавиши Win+R на клавиатуре, введите gpedit.msc и нажмите Enter, откроется редактор локальной групповой политики.
  2. Если требуется запретить использование USB накопителей для всех пользователей компьютера, перейдите к разделу Конфигурация компьютера — Административные шаблоны — Система — Доступ к съемным запоминающим устройствам. Если требуется заблокировать доступ только для текущего пользователя, откройте аналогичный раздел в «Конфигурация пользователя».
  3. Обратите внимание на пункты «Съемные диски: Запретить выполнение», «Съемные диски: Запретить запись», «Съемные диски: Запретить чтение». Все они отвечают за блокировку доступа к USB-накопителям. При этом запрет чтения запрещает не только просмотр содержимого флешки или копирование с неё, но и остальные операции (на накопитель нельзя будет что-либо записать, запуск программ с него также не будет выполняться). 
    Политики работы съемных запоминающих устройств

  4. Для того, чтобы, например, запретить чтение с USB накопителя, дважды нажмите по параметру «Съемные диски: Запретить чтение», установите значение «Включено» и примените настройки. Выполните то же самое для других требующихся вам пунктов. 
    Включить блокировку доступа к флешке

На этом процесс будет завершен, а доступ к USB заблокирован. Перезагрузка компьютера не требуется, однако, если на момент включения ограничений накопитель уже был подключен, изменения для него вступят в силу только после отключения и повторного подключения.

Как заблокировать использование USB флешки и других съемных накопителей с помощью редактора реестра

Если на вашем компьютере отсутствует редактор локальной групповой политики, ту же блокировку можно выполнить и с помощью редактора реестра:

  1. Нажмите клавиши Win+R на клавиатуре, введите regedit и нажмите Enter.
  2. В редакторе реестра перейдите к одному из разделов: первый — для запрета использования USB накопителей для всех пользователей. Второй — только для текущего пользователя
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
    HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows
  3. Создайте подраздел RemovableStorageDevices, а в нем — подраздел с именем {53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
  4. В этом подразделе создайте нужные параметры DWORD32 (даже для Windows x64) — с именем Deny_Read для запрета чтения и других операций, Deny_Execute — для запрета выполнения, Deny_Write — для запрета записи на USB накопитель. 
    Запретить доступ к USB накопителю в реестре

  5. Установите значение 1 для созданных параметров.

Запрет использования USB флешек и других съемных накопителей вступит в силу сразу после внесения изменения (если на момент блокировки накопитель уже был подключен к компьютеру или ноутбуку, он будет доступен до отключения и повторного подключения).

Дополнительная информация

Некоторые дополнительные нюансы блокировки доступа к USB накопителям, которые могут оказаться полезными:

  • Описанные выше способы работают для съемных USB флешек и дисков, однако не работают для устройств, подключенных по протоколу MTP и PTP (например, хранилище Android телефона продолжит быть доступным). Для отключения доступа по этим протоколам, в редакторе локальной групповой политики в том же разделе используйте параметры «WPD-устройства» для запрета чтения и записи. В редакторе реестра это будет выглядеть как подразделы {53f5630d-b6bf-11d0-94f2-00a0c91efb8b}, {6AC27878-A6FA-4155-BA85-F98F491D4F33} и {F33FDC04-D1AC-4E8E-9A30-19BBD4B108AE} в политиках RemovableStorageDevices (как описывалось выше) с параметрами Deny_Read и/или Deny_Write
    Запрет доступа к устройствам MTP и PTP

  • Для того, чтобы в дальнейшем вновь включить возможность использования USB накопителей, просто удалите созданные параметры из реестра или установите «Выключено» в измененных ранее политиках доступа к съемным запоминающим устройствам.
  • Еще один способ блокировки USB накопителей — отключение соответствующей службы: в разделе реестра
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

    измените значение Start на 4 и перезагрузите компьютер. При использовании этого способа подключенные флешки даже не будут появляться в проводнике.

Помимо встроенных средств системы, есть сторонние программы для блокировки подключения различного рода USB устройств к компьютеру, в том числе и продвинутые инструменты наподобие USB-Lock-RP.

USB storage devices are so common these days almost everyone owns USB storage device in shape of small flash drives, external hard disks, mobile phones, cameras, and lots of other portable devices. So if you want to secure your computer from stealing data, viruses or any other risks then simply disable the USB ports for USB storage devices / disk drives. To block the USB storage devices just follow the given steps below.

Note: this method just block the USB drives (Flash drives, External HDD, Mobile Phones, etc.) not the USB mouse, Keyboard, etc.

How to Disable USB ports

Press Windows + R from keyboard, type “regedit” in the “Run” window and hit Enter.

Explore the registry editor folders
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

in the right pane double click to open “Start” DWORD value as shown below.

Change its value to 4 and click “OK” button to save changes. Close the registry editor and plug in any USB storage device to check.

see more Windows 7 tips

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Built in isight windows 10 driver
  • Как поставить фон на компьютер windows 10
  • Windows 10 максимальное количество озу
  • Тестирование оперативной памяти windows 10 memtest
  • Переустановка windows в мурманске