Open PowerShell as admin mode, Type the following cmdlet to view the flash drive you want to fix, and press Enter Get-Disk This command will list out all the partitions including the flash drives. You can also Do clean and format a removable drive with PowerShell Commands. This cmdlet will perform the format with full force, with all applied settings specified. To perform a Quick format, Enter the below-mentioned command and hit enter.įormat-Volume -DriveLetter G -FileSystem NTFS -Full -Force Make sure to replace the G with your flash drive letter and mention the File system, this cmdlet performs full format, it will take lot of time to complete.
Open PowerShell in admin mode and Type the following command to perform a quick format on the flash drive.įormat-Volume -DriveLetter G -FileSystem NTFS
Today we are going to see how to format USB flash Drive using PowerShell. If you are a windows administrator and if you know PowerShellvery well and you can simplify and automate tedious and repetitive tasks by creating scripts and combining multiple commands together. Windows PowerShell is designed especially for the system administrators. NET frameworkand it includes a command-line shell and a scripting language.
Windows PowerShell is a powerful tool that is developed by Microsoft for purposes of task automation and configuration management.