How to remove write protection of 32 GB usb flash drive?


Thanks @Bree. Will give it a try when I have some spare time as I get all these free AutomationDirect dot com Catalogs on a USB Flash Drives all the time in snail mail.
 

My Computer My Computer

At a glance

WindowsXP/7/8/8.1/10/11,Linux,Android,FreeBSD...Intel® Core™ i7-8750H 8th Gen 2.2Ghz up to 4....64GB using 2x32GB CL16 Mushkin redLine modulesIntel UHD 630 & NVIDIA GeForce GTX 1050 Ti wi...
OS
WindowsXP/7/8/8.1/10/11,Linux,Android,FreeBSD Unix
Computer type
Laptop
Manufacturer/Model
Dell XPS 15 9570
CPU
Intel® Core™ i7-8750H 8th Gen 2.2Ghz up to 4.1Ghz
Motherboard
Dell XPS 15 9570
Memory
64GB using 2x32GB CL16 Mushkin redLine modules
Graphics Card(s)
Intel UHD 630 & NVIDIA GeForce GTX 1050 Ti with 4GB DDR5
Sound Card
Realtek ALC3266-CG
Monitor(s) Displays
15.6" 4K Touch UltraHD 3840x2160 made by Sharp
Screen Resolution
3840x2160 4K UltraHD
Hard Drives
Samsung MZ-V9P4T0B/AM 990 PRO 4TB PCIe®4.0 NVMe™ M.2 SSD was Toshiba KXG60ZNV1T02 NVMe 1TB SSD
PSU
Dell XPS 15 9570
Case
Dell XPS 15 9570
Cooling
Stock
Keyboard
Stock
Mouse
SwitftPoint ProPoint
Internet Speed
Comcast/XFinity 1.44Gbps/42.5Mbps
Browser
Microsoft EDGE (Chromium based) & Google Chrome
Antivirus
Windows Defender that came with Windows
This is what mines says:



image.png
 

My Computer My Computer

At a glance

WindowsXP/7/8/8.1/10/11,Linux,Android,FreeBSD...Intel® Core™ i7-8750H 8th Gen 2.2Ghz up to 4....64GB using 2x32GB CL16 Mushkin redLine modulesIntel UHD 630 & NVIDIA GeForce GTX 1050 Ti wi...
OS
WindowsXP/7/8/8.1/10/11,Linux,Android,FreeBSD Unix
Computer type
Laptop
Manufacturer/Model
Dell XPS 15 9570
CPU
Intel® Core™ i7-8750H 8th Gen 2.2Ghz up to 4.1Ghz
Motherboard
Dell XPS 15 9570
Memory
64GB using 2x32GB CL16 Mushkin redLine modules
Graphics Card(s)
Intel UHD 630 & NVIDIA GeForce GTX 1050 Ti with 4GB DDR5
Sound Card
Realtek ALC3266-CG
Monitor(s) Displays
15.6" 4K Touch UltraHD 3840x2160 made by Sharp
Screen Resolution
3840x2160 4K UltraHD
Hard Drives
Samsung MZ-V9P4T0B/AM 990 PRO 4TB PCIe®4.0 NVMe™ M.2 SSD was Toshiba KXG60ZNV1T02 NVMe 1TB SSD
PSU
Dell XPS 15 9570
Case
Dell XPS 15 9570
Cooling
Stock
Keyboard
Stock
Mouse
SwitftPoint ProPoint
Internet Speed
Comcast/XFinity 1.44Gbps/42.5Mbps
Browser
Microsoft EDGE (Chromium based) & Google Chrome
Antivirus
Windows Defender that came with Windows
I got it only if the flash drive is set to USB 2.0, although the flash drive itself is 3.0
Maybe only for the Phison firmware.
 

My Computer My Computer

At a glance

Microsoft Windows 11 HomeIntel Core i5-13490F2 x 16 Patriot Memory (PDP Systems) PSD516G56...GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (G...
OS
Microsoft Windows 11 Home
Computer type
PC/Desktop
Manufacturer/Model
MSI MS-7D98
CPU
Intel Core i5-13490F
Motherboard
MSI B760 GAMING PLUS WIFI
Memory
2 x 16 Patriot Memory (PDP Systems) PSD516G560081 6400MT (32-37-37-74); 1.35V)
Graphics Card(s)
GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (GV-N4070WF3OC-12GD)
Sound Card
Bluetooth Аудио
Monitor(s) Displays
INNOCN 15K1F
Screen Resolution
1920 x 1080
Hard Drives
WD_BLACK SN770 250GB
KINGSTON SNV2S1000G (ELFK0S.6)
PSU
Thermaltake Toughpower GF3 1000W
Case
CG560 - DeepCool
Cooling
ID-COOLING SE-224-XTS / 2 x 140Mm Fan - rear and top; 3 x 120Mm - front
Keyboard
Corsair K70 RGB TKL
Mouse
Corsair KATAR PRO XT
Internet Speed
100 Mbps
Browser
Firefox
Antivirus
Microsoft Defender Antivirus
Other Info
https://www.userbenchmark.com/UserRun/66553205
Run "diskpart"

Once in diskpart, run "list disk". Hopefully you can tell be the size which the correct disk is. If not, you can view details of each disk.

Now run "select disk x" where x is the number of the disk you want to check.

Now run "Attributes disk"

Check to see if the read only attribute is set.

If it is then you can use this command to clear that attribute:

Attributes disk clear readonly.

EDIT: If you really need to script this, let me know. I can do it, just don't want to spend the time if not necessary. After all, how often are you likely to need this? I would submit that it is easier to do this manually.
I've tried this. It says it has completed. I run again, and it still says "yes" for read only. I know this is an old post, but I hope someone has some help. I'm unable to format it. It shows as RAW
 

Attachments

  • Screenshot 2025-04-21 144953.webp
    Screenshot 2025-04-21 144953.webp
    35.4 KB · Views: 1

My Computer My Computer

At a glance

Windows 1113th Gen Intel(R) Core(TM) i7-13700H, 2400 Mh16GBIntel(R) Iris(R) Xe Graphics
OS
Windows 11
Computer type
Laptop
Manufacturer/Model
HP Envy
CPU
13th Gen Intel(R) Core(TM) i7-13700H, 2400 Mh
Motherboard
HP
Memory
16GB
Graphics Card(s)
Intel(R) Iris(R) Xe Graphics
Sound Card
Realtek High Definition Audio
Screen Resolution
1920x1080
Browser
MS Edge
Antivirus
Windows Defender and Malwarebytes
Back
Top Bottom