Force a safe flash drive removal

Hello,

If you used a flash drive in your live, you surely see that kind of message when you were trying to safely remove the drive:Cant-Unload-FlashDrive

“This device is currently in use. Close any programs or windows that might be using the device, and try again.”

You can get rid of it in seconds, thanks to the cmdlet : Write-VolumeCache.

Unload-FlashDrive-With-PowerShell

And then retry to safely remove the flash drive :

Unload-FlashDrive

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.