lab 4
lab 4
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.
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