How to Completely Wipe a Hard Drive Using PowerShell
**Update** - If you want to use PowerShell to configure your disk after you wipe it, check out our writeup of the process here. https://onlinecomputertips.com/support-categories/hardware/wipe-and-configure-drive-powershell/ Need to quickly clear a secondary hard drive or prepare a disk for a fresh setup? In this tutorial, we show you how to use PowerShell to completely wipe a disk, removing all partitions, volumes, and data. This method is a fast and powerful alternative to using the Disk Management GUI or the legacy DiskPart command. We walk through the essential commands to identify your drives safely and the specific syntax needed to clear a disk including OEM partitions. Once the drive is wiped, we also demonstrate how to re-initialize and format it so it's ready for use again. 0:00 Introduction to Wiping Disks with PowerShell 0:30 Identifying the Target Disk in Disk Management 0:50 Running PowerShell as Administrator 1:00 Using the Get-Disk Command 1:20 Executing the Clear-Disk Command (Syntax and Parameters) 1:40 Verifying the Results in Disk Management 1:55 Re-initializing and Formatting the Wiped Drive 2:30 Summary and Command Tips Step-by-Step Instructions: 1 - Open Admin PowerShell: Click Start, search for PowerShell, and select Run as Administrator. 2 - Identify Your Disk: Type Get-Disk and press Enter. Note the Number of the disk you want to wipe (e.g., Disk 1). Double-check the size to ensure you have the correct drive. 3 - Run the Clear Command: Use the following command, replacing 1 with your specific disk number: * Clear-Disk -Number 1 -RemoveData -RemoveOEM -Confirm:$false 4 - Re-initialize the Disk: Return to Disk Management. The drive will now show as "Unknown" and "Not Initialized." Right-click the disk name and select Initialize Disk, choosing GPT for modern systems. 5 - Create a New Volume: Right-click the unallocated space, select New Simple Volume, and follow the wizard to assign a drive letter and format the disk (usually NTFS). Here is a link to the video that shows you how to use the DiskPart command to wipe a disk and also has the PowerShell script you can use to wipe and reconfigure a drive at the same time. https://www.youtube.com/watch?v=eJ23V2W7qec 🎓 Step up your skills with our online training courses: http://madeeasytraining.com 📘 Get our book "Windows 11 Made Easy" on Amazon: https://www.amazon.com/dp/B09HFXWXRY 🚀 Master your software and hardware with our latest tech tips: https://onlinecomputertips.com #WindowsTips #PowerShell #HardDriveWipe #ITSupport #TechTutorial #DiskManagement #SysAdmin #Windows11 #Windows10 #OnlineComputerTips
Download
0 formatsNo download links available.