Providing Free and Editor Tested Software Downloads
< HOME | TUTORIALS | GEEK-CADE| WEB TOOLS | YOUTUBE | NEWSLETTER | DEALS! | FORUMS | >

MajorGeeks.com - You want the Geek? You can't handle the Geek!

Software Categories

All In One Tweaks
Android
Antivirus & Malware
Appearance
Back Up
Browsers
CD\DVD\Blu-Ray
Covert Ops
Drivers
Drives (SSD, HDD, USB)
Games
Graphics & Photos
Internet Tools
Linux Distros
MajorGeeks Windows Tweaks
Multimedia
Networking
Office & Productivity
System Tools

Other news

· How To and Tutorials
· Life Hacks and Reviews
· Way Off Base
· MajorGeeks Deals
· News
· Off Base
· Reviews


Opera One
Everything
you need.
Already
there.
AI assistant
Aria, built right in
Free VPN
No account needed
Ad blocker
Faster, cleaner web
Tab Islands
Grouped browsing
Useful sidebars
Make it yours
No Clunky Extensions Needed.



MajorGeeks Approved.



Download free

spread the word

· YouTube
· Facebook
· Instagram
· Twitter
· Pintrest
· RSS/XML Feeds
· News Blur
· Yahoo
· Symbaloo

about

· Top Freeware Picks
· Malware Removal
· Geektionary
· Useful Links
· About Us
· Copyright
· Privacy
· Terms of Service
· How to Uninstall

top downloads

1. GS Auto Clicker
2. Smart Defrag
3. Macrium Reflect FREE Edition
4. K-Lite Mega Codec Pack
5. MusicBee
6. Microsoft Visual C++ 2015-2022 Redistributable Package
7. Sergei Strelec's WinPE
8. K-Lite Codec Pack Full
9. Visual C++ Redistributable Runtimes AIO Repack
10. McAfee Removal Tool (MCPR)
More >>

top reads

Star How Much Storage Space Are Your Installed Apps Using in Windows 11?

Star How To Reset and Fix the Settings App in Windows 11

Star How To Remove the Windows 11 Updated Start Menu

Star How To Download a Windows 11 ISO

Star How To Disable Drag Tray

Star How To Boot Into WinRE (Windows Recovery Environment)

Star How To Find the Installation Date of Apps

Star Recently Opened Files - How To Hide or Show Them In Jump Lists, File Explorer, and Start Menu

Star How To Change the Name of a Local or Microsoft Account

Star How To Remove OneDrive From the Navigation Pane in File Explorer


MajorGeeks.Com » Overview» Tutorials and Video Guides » How to Format and Partition a Drive With PowerShell

How to Format and Partition a Drive With PowerShell

By Timothy Tibbetts

on 06/30/2023

Hop into IObit’s Easter Sale and save up to 90% on top utilities, plus score 3 FREE months before the deal disappears! πŸ°πŸŒ·πŸ†

While you can use File Explorer to format a drive in Windows, you can also use PowerShell if you're having issues with File Explorer or Windows Explorer.

Consider cleaning out junk files and defragmenting your hard drive to speed up and optimize the process.

If you're running low on hard drive space, there's never been a better and more affordable way to speed up your computer like an SSD hard drive, especially when you consider your hard drive is the biggest bottleneck in your computer. We prefer Western Digital SSD because they come with the easiest to use migration software even for the computer amateur. Links provided here are affiliate links, and we may earn a commission if you purchase using our links.

For our example, we will be formatting an external thumb drive. You will need to identify the drive you want to format correctly, and then we will give you the PowerShell commands.

Open PowerShell as admin and type in get-disk.

You will see a list of drives with a Number next to the Friendly Name. Our thumb drive can be identified as 2, the number we need to know going forward.



To format the drive type in Clear-Disk -Number X -RemoveData replacing X with your drive number.

Click Y and press Enter to erase the drive. You will see a splash screen and return to an empty line in Powershell when completed.



To create a new partition use New-Partition -DiskNumber X -UseMaximumSize -IsActive -DriveLetter Y replacing X with your drive number and Y with the drive letter you want to assign to the drive.

Sometimes that command will return an error. If so, try Format-Volume -DriveLetter X -FileSystem FAT32 -NewFileSystemLabel USB replacing X with your drive number. You can also change the volume FAT32 to NTFS.

Similar:
  • Western Digital SSD Drives at Amazon.
  • Do I Need to Format My Hard Drive When Doing a Fresh Install of Windows?
  • How to Format and Partition a Drive With PowerShell
  • How to Erase a Disk Using Diskpart Clean Command in Windows
  • GPT (GUID Partition Table) or MBR (Master Boot Record) When Partitioning a Drive?
  • Safely Convert Your Master Boot Record (MBR) to GUID Partition Table (GPT) with MBR2GPT.EXE
  • Windows 10 Creates an Extra Disk Partition

    comments powered by Disqus




  • © 2000-2026 MajorGeeks.com
    Powered by Contentteller® Business Edition