0% found this document useful (0 votes)
48 views2 pages

Lab 3

The document outlines a lab procedure for write-protecting and disabling a USB flash drive for the Electronics Engineering Department at Sardar Patel Institute of Technology. It includes methods using Windows registry settings, command line instructions, and third-party software. The aim is to provide students with practical skills in managing USB drive security and access control.
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)
48 views2 pages

Lab 3

The document outlines a lab procedure for write-protecting and disabling a USB flash drive for the Electronics Engineering Department at Sardar Patel Institute of Technology. It includes methods using Windows registry settings, command line instructions, and third-party software. The aim is to provide students with practical skills in managing USB drive security and access control.
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

Sardar Patel Institute of Technology

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


Electronics Engineering Department
Subject: CCN Lab Academic Year: 2022-23

Lab:3
AIM:
Write-Protecting and Disabling a USB Flash Drive.

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
Electronics Engineering Department
Subject: CCN Lab Academic Year: 2022-23
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:

You might also like