如何禁用U盤 遮蔽USB埠(兩種方法)

2021-06-22 20:59:18 字數 3311 閱讀 1848

由於電腦自身安全、商業機密保護的需要,常常要禁用電腦usb介面,尤其是禁用帶有usb儲存功能的裝置,如u盤、行動硬碟和手機儲存卡等,但同時又不能完全遮蔽usb介面的使用,因為現在很多的滑鼠和鍵盤都是usb埠。這種情況下,如何限制u盤使用而又不影響usb滑鼠和鍵盤的使用就成為網路管理的乙個目標。本文介紹兩種禁止使用u的方法:

一.bios禁用usb埠

重新啟動計算機,在啟動過程中按鍵盤上的delete鍵,進入bois設定介面,選擇「integratedperipherals」(整合裝置)選項,展開後將「usb 1.1 controller」(usb1.1控制器)和「usb 2.0 controller」(usb2.0控制器)選項的屬性設定為「disabled」(禁用)。再給bois設定上乙個密碼,這樣他人就不能輕易修改bois設定了。

缺點:當你想再用usb裝置就比較麻煩

二.登錄檔禁用u盤的方法

禁用u盤:

1、執行regedit,

2、展開hkey_local_machine\system\currentcontrolset\services\usbstor,

3、右擊start,將其值改為4,則可將u盤禁用,若要取消禁用,只需將4改回3.

禁止使用usb儲存裝置的登錄檔內容如下:

在記事本把**儲存成乙個名為lockusb.reg的reg檔案,然後雙擊該檔案匯入登錄檔就完成了禁止該計算機使用usb儲存裝置的操作。所有使用者都無法用usb儲存裝置了。

windows registry editor version 5.00

[hkey_local_machine\system\currentcontrolset\services\usbstor]

"type"=dword:00000001

"start"=dword:00000004

"errorcontrol"=dword:00000001

"imagepath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\

52,00,49,00,56,00,45,00,52,00,53,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,\

00,52,00,2e,00,53,00,59,00,53,00,00,00

"displayname"="usb大容量儲存裝置"

[hkey_local_machine\system\currentcontrolset\services\usbstor\security]

"security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\

00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\

00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\

05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\

20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\

00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\

00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

開啟usb儲存裝置使用許可權的登錄檔內容如下:

**儲存成乙個以unlockusb.reg字尾的reg檔案,雙擊該檔案匯入登錄檔就完成了開啟該計算機使用usb儲存裝置的操作。所有使用者都可以使用usb儲存裝置。

windows registry editor version 5.00

[hkey_local_machine\system\currentcontrolset\services\usbstor]

"type"=dword:00000001

"start"=dword:00000003

"errorcontrol"=dword:00000001

"imagepath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\

52,00,49,00,56,00,45,00,52,00,53,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,\

00,52,00,2e,00,53,00,59,00,53,00,00,00

"displayname"="usb大容量儲存裝置"

[hkey_local_machine\system\currentcontrolset\services\usbstor\security]

"security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\

00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\

00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\

05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\

20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\

00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\

00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

寫保護操作:

1、執行regedit,

2、展開hkey_local_machine\system\currentcontrolset,

3、右擊control項,選擇新建,重新命名新建項為writeprotect,並設定其值為00000001(十六進製制),然後重新整理即可.

4、若要取消對快閃儲存器寫保護的限制,將值改為00000000即可.

ubuntu server端,如何訪問U盤

如果是ubuntu桌面環境的話,不用mount,接入的u盤就可以直接被系統識別,訪問起來非常方便,但如果沒有桌面環境呢,比如在ubuntu server端,如何訪問u盤呢?第一步 檢視u盤資訊 sudo fdisk l 得到類似下面這樣的資訊 disk dev sdb 8027 mb,8027897...

本地U盤禁用工具

以前做過的乙個小工具 vb6開發,xp,2003系統正常執行 1.修改登錄檔中的乙個項。hkey local machine system currentcontrolset services usbstor 當 start 項 值為 4 時,系統禁用碟符自動分配,為3時,開啟碟符自動分配。當插入乙...

如何保護 U 盤?USB防毒高階篇 全

建立autorun.inf資料夾 在 autorun.inf 資料夾內建立con資料夾 使用者防止被病毒強行刪除並替換 autorun.inf 資料夾 設定檢測條件 第一種 不隱藏 autorun.inf 資料夾 如果突然發現 autorun.inf 資料夾消失或出現其它異常即代表 u 盤可能已經遭...