0% found this document useful (0 votes)
4 views3 pages

lab 4

The document outlines procedures for write-protecting and disabling USB flash drives and ports through Windows registry settings, command line, and third-party software. It includes detailed steps for each method, including registry edits and command prompts. Additionally, it introduces USBDeview, a utility for managing USB devices and retrieving information about previously connected USB devices.

Uploaded by

dummy.bloodbank1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

lab 4

The document outlines procedures for write-protecting and disabling USB flash drives and ports through Windows registry settings, command line, and third-party software. It includes detailed steps for each method, including registry edits and command prompts. Additionally, it introduces USBDeview, a utility for managing USB devices and retrieving information about previously connected USB devices.

Uploaded by

dummy.bloodbank1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Sardar Patel Institute of Technology

Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India


EXTC Engineering Department
Subject: CCN Lab Academic Year: 2024-25

Lab:4a
AIM:
Write-Protecting and Disabling a USB Flash Drive & Ports.

OBJECTIVES:
 Disabling the port through changing a Windows registry setting and write-protecting using
the same
 Write-protecting the port through command window
 Write-protecting the port through a third-party software

Procedure :
1. Using windows registry edit
1.1. To disable USB ports:
1.1.1. Go to Start Menu, type “Regedit” in the Search box to open Registry Editor.
1.1.2. Navigate to this key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\USBSTOR
1.1.3. Click on the start option to open the "Edit DWORD (32-bit) Value" Window.
 To disable the USB Ports or Drives, change the 'value data' to '4' and then click
OK.
 To enable the USB Drives or Ports, change its value to 3 and then click OK.
1.2. To write-protect USB drive:
1.2.1. Go to the following path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Control
1.2.2. Right-click the Control (folder) key, select New, and click Key.
1.2.3. Name the new key StorageDevicePolicies and press Enter.
1.2.4. Select this new key, right-click on the right side, select New and click DWORD (32-
bit) value.
1.2.5. Name the new word as WriteProtect and press Enter.
1.2.6. Double click the newly created DWORD and change its value from 0 to 1.
1.2.7. Click OK and close the registry.

2. Using command line to write protect USB


2.1. Connect the USB flash drive to your Windows PC.
2.2. Launch Command Prompt (CMD) as Administrator
2.3. In the CMD type the following
2.3.1. Diskpart
2.3.2. List Disk. Now you have to select the disk you want to disable
2.3.3. Select Disk X, where X is the disk number of your USB drive.
 To enable write, deletion, and format protection, type Attributes Set Disk
Readonly
 To disable write, delete, and format protection type Attributes Disk Clear
Readonly
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
EXTC Engineering Department
Subject: CCN Lab Academic Year: 2024-25

3. Using software to disable and write-protect USB


3.1. Download from https://........
3.2. Unzip and run the software
3.3. To disable the USB ports to go.

OUTPUT:

Summary:

Lab 4b:
Aim of the Experiment: Find Last Connected USB on your system (USB Forensics)
USBDeview is a small utility that lists all USB devices that currently connected to
your computer, as well as all USB devices that you previously used.
For each USB device, extended information is displayed: Device name/description,
device type, serial number (for mass storage devices), the date/time that device was
added, VendorID, ProductID, and more…
USBDeview also allows you to uninstall USB devices that you previously used,
disconnect USB devices that are currently connected to your computer, as well as to
disable and enable USB devices.
You can also use USBDeview on a remote computer, as long as you log in to that
computer with admin user.
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
EXTC Engineering Department
Subject: CCN Lab Academic Year: 2024-25

You might also like